Launching an external or a custom URI scheme in a new window provided by `add_NewWindowRequested` does not work
Description
It is impossible to launch a URI scheme which is registered with the OS (external) or by WebView2's ICoreWebView2CustomSchemeRegistration (custom) and directed to a new window that is provided by add_NewWindowRequested. A new window is opened but nothing happens. The invocation works if the pop-up window is handled by WebView2 itself. It doesn't matter if the scheme is called by window.open or an anchor with target '_blank'.
Version SDK: 1.0.1823.32 Runtime: 114.0.1823.51 Framework: Win32 OS: Win10
Repro Steps This can be reproduced in WebView2APISample. Obviously, an external scheme is needed but WebView2APISample's custom scheme "calculator://" suffices:
- Launch WebView2APISample.
- Open a console.
- Execute
window.open("calculator://");. Executingwindow.location.href = "calculator://";works as expected.
Thanks for reporting the issue. I've assigned this to a dev that can help follow up on this.
Unfortunately, this issue still persists more than two years later.