MicrosoftEdge / MicrosoftEdge/WebView2Feedback

< a > link to open the web page won't execute AddScriptToExecuteOnDocumentCreatedAsync

Open
#3,759 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Link and a window. The open is triggered NewWindowRequested events, that's true, but through the link to open the web page and no AddScriptToExecuteOnDocumentCreatedAsync success

Version
SDK: 1.0.1901.177
Runtime: 115.0.1901.203
Framework: Winforms
OS: Win11

Regression
Was this working before but has regressed?
If yes, what version did this last work on?

Repro Steps

Screenshots

Additional context

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 a minimal WinForms reproduction using the reported NewWindowRequested event and AddScriptToExecuteOnDocumentCreatedAsync call on the stated SDK and runtime versions. Verify whether the script is registered and executes when a link opens a new window, and document the exact expected and actual behavior; the issue currently provides no reproducible steps or test location.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.