MicrosoftEdge / MicrosoftEdge/WebView2Feedback
CoreWebView2NewWindowRequestedEventArgs: Add property to indicate source/type
Open
@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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.