Bug 170808 - [GTK] Right-click context menu does not appear on Google Sheets
Summary: [GTK] Right-click context menu does not appear on Google Sheets
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 09:40 PDT by Beau Adkins
Modified: 2017-04-13 13:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Beau Adkins 2017-04-13 09:40:29 PDT
In webkitgtk browser 2.12 and 2.14 (haven't tried trunk or 2.16 yet), right clicking in a Google Sheets document does nothing. It should pop up a custom context menu that has options like deleting rows and cells. Instead it does nothing. Even the default context menu does not appear.

However, if you are on a Google Doc instead, its custom right-click menu appears as expected.

Also interesting, Google Sheets has a custom keyboard shortcut of Ctrl+Shift+\ to make the custom context menu appear. That works as expected.

So the issue seems to be related to handling the "contextmenu" event and only on Google Sheets. The context menu works properly if it is invoked using the keyboard shortcut.
Comment 1 Beau Adkins 2017-04-13 13:39:29 PDT
Additional testing gives some more insights. Right clicking on a selected cell does nothing, as originally reported. However, a selected cell will have a small blue square in its bottom right corner. Right-clicking that blue square WILL bring up the context menu. 

So the real issue and difference with other browsers is that in WebKit, you have to right click the small blue square, but on other browsers, you can right-click anywhere in the cell.