WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

Launching an external or a custom URI scheme in a new window provided by `add_NewWindowRequested` does not work

Open RichardSteele opened this issue 2 years ago • 2 comments

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:

  1. Launch WebView2APISample.
  2. Open a console.
  3. Execute window.open("calculator://");. Executing window.location.href = "calculator://"; works as expected.

RichardSteele avatar Jun 21 '23 09:06 RichardSteele

Thanks for reporting the issue. I've assigned this to a dev that can help follow up on this.

novac42 avatar Jun 26 '23 03:06 novac42

Unfortunately, this issue still persists more than two years later.

RichardSteele avatar Oct 16 '25 09:10 RichardSteele