MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: On Share , new window is opened , but event not coming on newWindowRequested

Open
#4,938 11 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Nov 20, 2024.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?
image image

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

AB#55158496

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.