MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Residual URL label remains on screen after intercepting CoreWebView2_NewWindowRequested Event

Open
#1,275 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

@champnic

Description
After using e.handled = True in the NewWindowRequest event the url label that would normally overlay the new window that is created is still showing up even after the NewWindowRequest is diverted and handled.

image001 (1)

Version
SDK:
Runtime:
Framework:
OS:

Repro Steps
Create a handler for NewWindowRequest
Set e.handled = true
Divert window creation to internal application environment method.

Screenshots

Additional context
This looks like the label creation was left out of the e.handled override.

Main Bug: AB#33211348
Doc bug: AB#34068073

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.

Research direction

Start with the CoreWebView2_NewWindowRequested event flow and reproduce the issue by setting e.handled = True while diverting window creation internally. Trace when the URL label is created or removed during that flow; done means the label no longer remains visible after the request is handled.

Written by the indexing model from the issue text.

Assessment

Domain
api, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.