diff --git a/chromium/background.js b/chromium/background.js index 4a17201c73e6..0462ccaf7645 100644 --- a/chromium/background.js +++ b/chromium/background.js @@ -573,7 +573,7 @@ function onBeforeRedirect(details) { // Registers the handler for requests // See: https://github.com/EFForg/https-everywhere/issues/10039 -wr.onBeforeRequest.addListener(onBeforeRequest, {urls: [""]}, ["blocking"]); +wr.onBeforeRequest.addListener(onBeforeRequest, {urls: ["*://*/*"]}, ["blocking"]); // Try to catch redirect loops on URLs we've redirected to HTTPS. diff --git a/chromium/manifest.json b/chromium/manifest.json index 31c42d7a6f78..99d1cbe92631 100644 --- a/chromium/manifest.json +++ b/chromium/manifest.json @@ -1,43 +1,43 @@ { "author": { "email": "eff.software.projects@gmail.com" - }, + }, "background": { "scripts": [ - "rules.js", - "storage.js", - "util.js", - "background.js", + "rules.js", + "storage.js", + "util.js", + "background.js", "incognito-cache-clearing.js" ] - }, + }, "browser_action": { "default_icon": { "38": "icons/icon-active-38.png" - }, - "default_popup": "popup.html", + }, + "default_popup": "popup.html", "default_title": "__MSG_about_ext_name__" - }, - "default_locale": "en", - "description": "__MSG_about_ext_description__", - "devtools_page": "devtools.html", - "homepage_url": "https://www.eff.org/https-everywhere", + }, + "default_locale": "en", + "description": "__MSG_about_ext_description__", + "devtools_page": "devtools.html", + "homepage_url": "https://www.eff.org/https-everywhere", "icons": { - "128": "icons/icon-active-128.png", + "128": "icons/icon-active-128.png", "48": "icons/icon-active-48.png" - }, - "incognito": "spanning", - "manifest_version": 2, - "minimum_chrome_version": "51", - "name": "__MSG_about_ext_name__", + }, + "incognito": "spanning", + "manifest_version": 2, + "minimum_chrome_version": "51", + "name": "__MSG_about_ext_name__", "permissions": [ - "webNavigation", - "webRequest", - "webRequestBlocking", - "tabs", - "cookies", - "storage", - "" - ], + "webNavigation", + "webRequest", + "webRequestBlocking", + "tabs", + "cookies", + "storage", + "*://*/*" + ], "version": "2017.7.18" -} \ No newline at end of file +}