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

Description Jeff Fortin 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.
Comment 1 Jeff Fortin 2023-06-30 11:57:23 PDT
Forgot to mention: this was tested on a Wayland GNOME 44 session, not Xorg.
Comment 2 Michael Catanzaro 2023-07-02 07:48:08 PDT
Er, why are you using 2.40.0? Try updating to the latest version please....
Comment 3 Kdwk 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
Comment 4 Jeff Fortin 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.