question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebView2 doesn't expose NewWindowRequested event

See original GitHub issue

Describe the bug The NewWindowRequested event from WebView (1) and the underlying WebView2 API is not exposed to the XAML based WebView2. ☹

Expected behavior NewWindowRequested event is on WebView2 XAML control.

Version Info NuGet package version: WinUI 3 Preview2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DmitriyKomincommented, Nov 18, 2020

With the recently released WinUI Preview3, this is now exposed as WebView2.CoreWebView2.NewWindowRequested.

0reactions
codendonecommented, Aug 6, 2020

The work to expose the CoreWebView2 WinRT APIs with its full capabilities is starting now (internal task). And, we have another more specific task to ensure NewWindowRequested works (internal task).

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebView2 NewWindowRequested missing windowName ...
The NewWindowRequested event is raised after WebView2 applies the logic for the window name. That is, if the window name is for an...
Read more >
CoreWebView2.NewWindowRequested Event
NewWindowRequested is raised when content inside the WebView requests to open a new window, such as through window.open().
Read more >
WebView2 Win32 C++ ICoreWebView2 | Microsoft Learn
WebView2 enables you to host web content using the latest Edge web browser ... Add an event handler for the NewWindowRequested event.
Read more >
ICoreWebView2 in webview2_sys - Rust
WebView2 enables you to host web content using the latest Microsoft Edge browser and web ... Add an event handler for the NewWindowRequested...
Read more >
Microsoft.Web.WebView2.1.0.864.35\net45 ...
MoveFocusRequested"/> event is raised, the focus is still on WebView when <see cref="E:Microsoft.Web.WebView2.Core.CoreWebView2Controller.MoveFocusRequested"/> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found