Fix missing "Block element" in Firefox's menu

Regression from:
- 58620fb051
This commit is contained in:
Raymond Hill 2019-09-20 07:51:47 -04:00
parent 1d93d6f64e
commit 4f89a6f89d
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
2 changed files with 6 additions and 3 deletions

View file

@ -73,7 +73,7 @@
"open_in_tab": true "open_in_tab": true
}, },
"permissions": [ "permissions": [
"contextMenus", "menus",
"privacy", "privacy",
"storage", "storage",
"tabs", "tabs",

View file

@ -297,6 +297,7 @@ try {
// Final initialization steps after all needed assets are in memory. // Final initialization steps after all needed assets are in memory.
// Start network observers.
µb.webRequest.start(); µb.webRequest.start();
// Ensure that the resources allocated for decompression purpose (likely // Ensure that the resources allocated for decompression purpose (likely
@ -318,10 +319,12 @@ initializeTabs();
: 0 : 0
); );
µb.contextMenu.update(null); // Force an update of the context menu according to the currently
// active tab.
µb.contextMenu.update();
// https://github.com/uBlockOrigin/uBlock-issues/issues/717 // https://github.com/uBlockOrigin/uBlock-issues/issues/717
// Prevent the extensions from being restarted mid-session. // Prevent the extension from being restarted mid-session.
browser.runtime.onUpdateAvailable.addListener(details => { browser.runtime.onUpdateAvailable.addListener(details => {
const toInt = vAPI.app.intFromVersion; const toInt = vAPI.app.intFromVersion;
if ( if (