Index: ext/background.js |
=================================================================== |
--- a/ext/background.js |
+++ b/ext/background.js |
@@ -418,17 +418,19 @@ |
/* Context menus */ |
let contextMenuItems = new ext.PageMap(); |
let contextMenuUpdating = false; |
let updateContextMenu = () => |
{ |
- if (contextMenuUpdating) |
+ // Firefox for Android does not support context menus. |
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1269062 |
+ if (!("contextMenus" in chrome) || contextMenuUpdating) |
return; |
contextMenuUpdating = true; |
chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => |
{ |
chrome.contextMenus.removeAll(() => |
{ |