[Problem/Bug]: Page loaded after calling window.stop() #4808
Labels
bug
Something isn't working
regression
Something used to work but doesn't anymore
tracked
We are tracking this work internally.
What happened?
We have a test page for verifying address bar spoofing is not possible in our application and we started observing a new window loading behavior starting with WebView2 runtime v130 (tested on
130.0.2832.0
)When we open a new window, set its location to a valid URL and immediately call
window.stop()
, the page still gets loaded.Seems like this only happens when even listener(s) attached to
CoreWebView2.NewWindowRequested
, but it's necessary for us to be able to customize the new window as well.The issue can be reproduced with the WebView2WpfBrowser sample app if it's using WebView2 runtime v130+ (I used
130.0.2832.0
). See recordingWebView2WpfBrowser_v130_reproducible.mp4
The issue cannot be reproduced with the sample app for WebView2 runtime v128 and v129
The complete code, copied from https://privacy-test-pages.site/security/address-bar-spoofing/spoof-about-blank-rewrite.html:
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
130.0.2832.0
SDK Version
No response
Framework
WPF
Operating System
Windows 10, Windows 11
OS Version
No response
Repro steps
Expectation: no page should be loaded, just
about:blank
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Regression in newer Runtime
Last working version (if regression)
Runtime 129.0.2792.31
AB#53858698
The text was updated successfully, but these errors were encountered: