Bug 258746

Summary: [GTK] Regression : custom right-click menus overlaid with browser's standard right-click menu
Product: WebKit Reporter: Jeff Fortin <nekohayo>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply, kdwkleung, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot
none
Screenshot of three widgets overlapping
none
Video demonstrating how to easily reproduce the issue with GMail none

Jeff Fortin
Reported 2023-06-30 11:56:42 PDT
Created attachment 466886 [details] screenshot In Epiphany 44.3 with WebKitGTK 2.40.0 on Fedora 38, right-clicking an email in gmail's email list will show both GMail's custom right-click menu _and_ Epiphany's Back/forward/reload menu overlaid on top, blocking input to the custom menu (it is impossible to select and click its items). See attached screenshot.
Attachments
screenshot (53.41 KB, image/png)
2023-06-30 11:56 PDT, Jeff Fortin
no flags
Screenshot of three widgets overlapping (28.03 KB, image/png)
2024-01-19 12:32 PST, Jeff Fortin
no flags
Video demonstrating how to easily reproduce the issue with GMail (694.64 KB, video/mp4)
2025-04-21 21:19 PDT, Jeff Fortin
no flags
Jeff Fortin
Comment 1 2023-06-30 11:57:23 PDT
Forgot to mention: this was tested on a Wayland GNOME 44 session, not Xorg.
Michael Catanzaro
Comment 2 2023-07-02 07:48:08 PDT
Er, why are you using 2.40.0? Try updating to the latest version please....
Kdwk
Comment 3 2023-07-05 00:09:50 PDT
I can reproduce with Epiphany Tech Preview/ WebKitGTK 2.41.6. This can be reliably reproduced by: 1. Visit youtube.com and watch a video 2. Right-click on the video to get a custom context menu provided by YouTube 3. Do not dismiss the menu 4. Right-click on the video again to dismiss the custom menu and get the browser menu -- this is expected 5. Dismiss the browser menu 6. Right-click on the video again. Both custom menu and browser menu appears, with the browser menu overlaid on top of the custom menu. There is no way to dismiss the browser menu without also dismissing the custom menu, so the custom menu is blocked
Jeff Fortin
Comment 4 2024-01-19 12:32:19 PST
Created attachment 469470 [details] Screenshot of three widgets overlapping Still happens with Epiphany 45.2 + WebKitGTK 2.42.3 on Wayland GNOME 45.2. Sometimes the two menus open, sometimes the right-click gets immediately "eaten" by a menu (or something else) without keeping any of them open; i.e. I might right-click a message thread in GMail and it will immediately close the menu and open the message thread (maybe because it somehow does a left click, or hits the "Reply" action that is the 1st item in the gmail contextual menu). In this screenshot, you can even see cases where you have both menus AND the contact's hover card overlaid atop the menu. The behavior is quite unpredictable.
Jeff Fortin
Comment 5 2025-04-21 21:19:15 PDT
Created attachment 475002 [details] Video demonstrating how to easily reproduce the issue with GMail I found a way to 100% reliably reproduce this with GMail, super easily: simply right-click on the GMail web app's header area next to the search bar, i.e. the blank area next just above the messages list; this will trigger Epiphany's native contextual menus, and the next times, everytime you try to right-click a message conversation in the list, it will open that menu at the same time as GMail's custom contextual menu. This has been tested on GNOME 48's Wayland session.
Jeff Fortin
Comment 6 2025-04-21 21:33:30 PDT
The reason why I was running into this issue so often in "inexplicable" ways in GMail is that I was probably doing this: 1. Open https://mail.google.com in Epiphany 2. Enter inside a message from the list 3. Right-click something within the message's contents (ex: to copy a hyperlink): Epiphany's native menu appears, because at that time GMail doesn't use its own menu in that context 4. Go back to the conversations/messages list view 5. Right-click a message item row (to select/move the conversation, etc.): then GMail's custom menu appears at the same time as Epiphany's general native menu. 6. If you reload the website (F5), the state resets to step 1, so the conflicting menus don't occur until you repeat steps 2-3. If you don't do steps 2-3, the bug won't occur at step 5.
Note You need to log in before you can comment on or make changes to this bug.