| Summary: | webkitWebViewPopulateContextMenu emits context-menu signal with NULL event (illegal) | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Catanzaro <mcatanzaro> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | aperez, bugs-noreply, cgarcia, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=1687185 | ||
|
Description
Michael Catanzaro
2019-03-18 08:01:24 PDT
We need a way to reproduce this. The web process is sending the ShowContextMenu message without a right click event. We need to understand why. I've asked in the downstream bug, but usually reporters don't know anything about how it crashes. Jan-Michael asked elsewhere about what happens when the context menu is opened via a touch event (long press or something?). Maybe this is related to touch? The documentation seems to indicate this can't happen, but perhaps the documentation is outdated. (In reply to Michael Catanzaro from comment #2) > I've asked in the downstream bug, but usually reporters don't know anything > about how it crashes. > > Jan-Michael asked elsewhere about what happens when the context menu is > opened via a touch event (long press or something?). Maybe this is related > to touch? The documentation seems to indicate this can't happen, but perhaps > the documentation is outdated. I *suppose* that another way of opening a context menu without using a mouse event would be with the menu key from the keyboard ¬_¬ (In reply to Adrian Perez from comment #3) > (In reply to Michael Catanzaro from comment #2) > > I've asked in the downstream bug, but usually reporters don't know anything > > about how it crashes. > > > > Jan-Michael asked elsewhere about what happens when the context menu is > > opened via a touch event (long press or something?). Maybe this is related > > to touch? The documentation seems to indicate this can't happen, but perhaps > > the documentation is outdated. > > I *suppose* that another way of opening a context menu without using > a mouse event would be with the menu key from the keyboard ¬_¬ In that case we pass the keyboard event, see the first comment: """ The event is expected to be one of the following types: a GdkEventButton of type GDK_BUTTON_PRESS when the context menu was triggered with mouse. a GdkEventKey of type GDK_KEY_PRESS if the keyboard was used to show the menu. a generic GdkEvent of type GDK_NOTHING when the “popup-menu” signal was used to show the context menu. """ |