Skip to content

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

@RichardSteele

Description

@RichardSteele

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions