MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[UWP] Webview2 New popup window is not focused(Not Active) on Main window(opened the behind the main window)
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hi Team,
We have developed one UWP app that app need to learn courses when we click on learn course window that window open in new popup window
**We are not able to see that new course window in UWP but try to see that new window to click Task manager to open that window in windows OS, It is not possible to see that New popup (Course) in Kiosk **
I have tried below code to open new course window on same(Main) window but blank window is opened
private void CoreWebView2_NewWindowRequested(Microsoft.Web.WebView2.Core.CoreWebView2 sender, Microsoft.Web.WebView2.Core.CoreWebView2NewWindowRequestedEventArgs args)
{
args.Handled = true;
args.NewWindow = (Microsoft.Web.WebView2.Core.CoreWebView2)sender;
args.GetDeferral().Complete();
}
Requirement: Need to Focus(Active) that popup window on top of that Main window
second time tried methods as per the senior experts input tried but not working as expected.

I have tried alternate ways but doesn't work for me, Please provide your valuable suggestions to resolve this issue
Thanks in Advance
Regards,
Suresh.
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.
Research direction
Start by reproducing the UWP kiosk scenario described in the issue, focusing on the CoreWebView2_NewWindowRequested handler and the shown args.Handled, args.NewWindow, and deferral flow. Verify the behavior when a course opens in a new popup and when the handler attempts to reuse the main window. Done means the course window is visible and focused above the main window rather than opening blank or behind it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100