MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: On Share , new window is opened , but event not coming on newWindowRequested
@champnic is already working on this.
Since Nov 20, 2024.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
I am trying to share the URL , so it is opening in a new Window , but there is no event on the newWindowRequested
This is the code I am using
WebView.CoreWebView2.NewWindowRequested += CoreWebView2_NewWindowRequested;
So what I want is , I should get that event on the newWindowRequested event handler such that I can prevent it from opening in the new window.
cc : @JosephJin0815 , @champnic , @yild
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
WPF
Operating System
Windows 11
OS Version
No response
Repro steps
Open URL in webview
On right clicking , click on share
It should raise an event on this event handler newWindowRequested.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
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.