MicrosoftEdge / MicrosoftEdge/WebView2Feedback

CoreWebView2NewWindowRequestedEventArgs: Add property to indicate source/type

Open
#1,274 13 comments 1 reaction 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Mar 3, 2025.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The question is about a situation when webview is creating new window:

webView.CoreWebView2.NewWindowRequested += newWindowRequested;       

private void newWindowRequested(CoreWebView2 sender,
                                              CoreWebView2NewWindowRequestedEventArgs args)
{
}

CoreWebView2NewWindowRequestedEventArgs has the properties which are not clear to me. It has IsUserInitiated which is always true, why do we need it?

Also we need a property to distingiush whether a link has been clicked or new window comes from window.open(). Can such a property be added?

AB#33280354

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.