MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: When attaching the ContextMenuRequest event to the PDF viewer, the Back, Forward, and Refresh items disappear.
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Winform .NET 4.7
Webview2 version 1.0.259251
For PDF file
When attaching the ContextMenuRequest event without doing anything, some items disappear (Back, Forward, Refresh).
When removing one item, for example, "Print," all remaining items no longer work except for Copy.
This event is also not handled when I right-click on the search box (I want to remove some items from the search box).
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime), Prerelease (Edge Canary/Dev/Beta)
Runtime Version
126.0.25.92.102
SDK Version
No response
Framework
Winforms
Operating System
Windows 10
OS Version
Enterprise LTSC 1809
Repro steps
- Use sample of Winforms_GettingStarted
- Add event ContextMenuRequest and remove item Print
- Open PDF file
- Right click on Page PDF
- Right click on search box
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
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 Winforms_GettingStarted sample and reproduce the ContextMenuRequest behavior using a PDF, removing the Print item as described. Check the page context menu and the search box separately. Done means Back, Forward, Refresh, and other remaining items continue to work, and the event is handled for the search box.
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
- Mostly clear
- Newbie friendliness
- 30/100