diff --git a/platform/chromium/manifest.json b/platform/chromium/manifest.json index 8a4f5ac..89cfbb3 100644 --- a/platform/chromium/manifest.json +++ b/platform/chromium/manifest.json @@ -69,7 +69,6 @@ "options_page": "dashboard.html", "permissions": [ "browsingData", - "contentSettings", "cookies", "privacy", "storage", diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index ef01a8b..162410b 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -49,22 +49,6 @@ chrome.privacy.network.networkPredictionEnabled.set({ value: false }); -// rhill 2013-12-07: -// Tell Chromium to allow all javascript: µMatrix will control whether -// javascript execute through `Content-Policy-Directive` and webRequest. -// https://github.com/gorhill/httpswitchboard/issues/74 -// Firefox WebExtensions does not support contentSettings API, yet. -if ( chrome.contentSettings instanceof Object ) { - chrome.contentSettings.javascript.set({ - primaryPattern: 'https://*/*', - setting: 'allow' - }); - chrome.contentSettings.javascript.set({ - primaryPattern: 'http://*/*', - setting: 'allow' - }); -} - /******************************************************************************/ vAPI.app = { @@ -75,32 +59,11 @@ vAPI.app = { /******************************************************************************/ vAPI.app.start = function() { - // rhill 2013-12-07: - // Relinquish control over javascript execution to the user. - // https://github.com/gorhill/httpswitchboard/issues/74 - //chrome.contentSettings.javascript.clear({}); }; /******************************************************************************/ vAPI.app.stop = function() { - // Firefox WebExtensions does not support contentSettings API, yet. - if ( chrome.contentSettings instanceof Object ) { - chrome.contentSettings.javascript.clear({}); - } - - // rhill 2013-12-07: - // Tell Chromium to allow all javascript: µMatrix will control whether - // javascript execute through `Content-Policy-Directive` and webRequest. - // https://github.com/gorhill/httpswitchboard/issues/74 - //chrome.contentSettings.javascript.set({ - // primaryPattern: 'https://*/*', - // setting: 'allow' - //}); - //chrome.contentSettings.javascript.set({ - // primaryPattern: 'http://*/*', - // setting: 'allow' - //}); }; /******************************************************************************/