mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
fix #793
This commit is contained in:
parent
4765db4d86
commit
930b6dd820
2 changed files with 0 additions and 38 deletions
|
@ -69,7 +69,6 @@
|
||||||
"options_page": "dashboard.html",
|
"options_page": "dashboard.html",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"browsingData",
|
"browsingData",
|
||||||
"contentSettings",
|
|
||||||
"cookies",
|
"cookies",
|
||||||
"privacy",
|
"privacy",
|
||||||
"storage",
|
"storage",
|
||||||
|
|
|
@ -49,22 +49,6 @@ chrome.privacy.network.networkPredictionEnabled.set({
|
||||||
value: false
|
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 = {
|
vAPI.app = {
|
||||||
|
@ -75,32 +59,11 @@ vAPI.app = {
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
vAPI.app.start = function() {
|
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() {
|
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'
|
|
||||||
//});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue