[Problem/Bug]: CoreWebView2WindowFeatures/ICoreWebView2WindowFeatures returning invalid values for top and left when provided with negative values in window.open() #4551
Labels
bug
Something isn't working
priority-low
We have considered this issue and decided that we will not be able to address it in the near future.
tracked
We are tracking this work internally.
What happened?
The
top
andleft
values onICoreWebView2WindowFeatures
andCoreWebView2WindowFeatures
appear to be signed integer values that are simply cast to unsigned integer values. If a website uses negative values (which should be invalid for these properties), the values returned are notuint.MaxValue
as the docs specify, but a very large uint value that corresponds to the negative value cast to a uint.Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
126.0.2544.0
SDK Version
1.0.1722.45
Framework
WPF
Operating System
Windows 10
OS Version
19045.4355
Repro steps
CoreWebView2WindowFeatures.Top
andCoreWebView2WindowFeatures.Left
.Expected:
Both values should be uint.MaxValue because negative values are invalid for these fields.
Observed
Values are uint.MaxValue - 1000 + 1 which is the signed integer value of -1000 used in the example.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
AB#46380638
The text was updated successfully, but these errors were encountered: