From 86e80d43d67e6561798b742fcffbafe7175e0a42 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 20 Apr 2018 11:26:11 -0400 Subject: [PATCH] fix https://github.com/gorhill/uBlock/issues/3693#issuecomment-379782428 --- src/js/background.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/js/background.js b/src/js/background.js index cd530ac69..180e75a5a 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -53,6 +53,20 @@ var µBlock = (function() { // jshint ignore:line userResourcesLocation: 'unset' }; + var whitelistDefault = [ + 'about-scheme', + 'chrome-extension-scheme', + 'chrome-scheme', + 'moz-extension-scheme', + 'opera-scheme', + 'vivaldi-scheme', + 'wyciwyg-scheme', // Firefox's "What-You-Cache-Is-What-You-Get" + ]; + // https://github.com/gorhill/uBlock/issues/3693#issuecomment-379782428 + if ( vAPI.webextFlavor.soup.has('webext') === false ) { + whitelistDefault.push('behind-the-scene'); + } + return { firstInstall: false, @@ -113,16 +127,7 @@ var µBlock = (function() { // jshint ignore:line // Whitelist directives need to be loaded once the PSL is available netWhitelist: {}, netWhitelistModifyTime: 0, - netWhitelistDefault: [ - 'about-scheme', - 'chrome-extension-scheme', - 'chrome-scheme', - 'moz-extension-scheme', - 'opera-scheme', - 'vivaldi-scheme', - 'wyciwyg-scheme', // Firefox's "What-You-Cache-Is-What-You-Get" - '' - ].join('\n'), + netWhitelistDefault: whitelistDefault.join('\n'), localSettings: { blockedRequestCount: 0,