MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Detect/Prevent opening new window on link from PDF file

Open
#2,004 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Standard click (left mouse button) on link in PDF File (viewed in WebView2) raises events as NavigationStarting, NewWindowRequested etc. But if middle mouse button (scroll wheel) or combination with ctrl/shift + left mouse button is used, new window of browser is opened and there are no detectable events. We need to prevent opening new windows in our application. Is there some way or workaround to prevent opening new windows from PDF files?

This problem was also discussed here: https://docs.microsoft.com/en-us/answers/questions/647608/detect-opening-new-browser-window-on-mouse-button.html?childToView=654456#comment-654456

AB#37358235

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 reported WebView2 PDF behavior and review the linked Microsoft Q&A discussion. Determine whether the application can detect or suppress middle-click and modifier-click links that open an external browser window, and document a supported workaround or limitation as the completion criteria.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.