Index: lib/filterComposer.js |
=================================================================== |
--- a/lib/filterComposer.js |
+++ b/lib/filterComposer.js |
@@ -171,16 +171,21 @@ |
onclick(page) |
{ |
page.sendMessage({type: "composer.content.contextMenuClicked"}); |
} |
}; |
function updateContextMenu(page, filter) |
{ |
+ // Firefox for Android does not support context menus. |
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1269062 |
+ if (!("contextMenus" in chrome)) |
+ return; |
Wladimir Palant
2017/08/16 13:21:56
This change won't be necessary any more if my prev
Manish Jethani
2017/08/16 19:39:09
Done.
|
+ |
page.contextMenus.remove(contextMenuItem); |
if (typeof filter == "undefined") |
filter = checkWhitelisted(page); |
if (!filter && Prefs.shouldShowBlockElementMenu && readyPages.has(page)) |
page.contextMenus.create(contextMenuItem); |
} |