MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Detect/Prevent opening new window on link from PDF file
Nobody has claimed this yet.
- 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
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 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