mirror of https://github.com/gorhill/uBlock.git
Enable broad no-csp-reports rule only in Firefox
Related commit:
- 7d90f97aa1
This commit is contained in:
parent
095924aa50
commit
bc9b8a1330
|
@ -233,7 +233,6 @@ const createDefaultProps = function() {
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
'urlFilteringString': '',
|
'urlFilteringString': '',
|
||||||
'hostnameSwitchesString': [
|
'hostnameSwitchesString': [
|
||||||
'no-csp-reports: * true',
|
|
||||||
'no-large-media: behind-the-scene false',
|
'no-large-media: behind-the-scene false',
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
'lastRestoreFile': '',
|
'lastRestoreFile': '',
|
||||||
|
@ -243,6 +242,10 @@ const createDefaultProps = function() {
|
||||||
'netWhitelist': µb.netWhitelistDefault,
|
'netWhitelist': µb.netWhitelistDefault,
|
||||||
'version': '0.0.0.0'
|
'version': '0.0.0.0'
|
||||||
};
|
};
|
||||||
|
// https://github.com/LiCybora/NanoDefenderFirefox/issues/196
|
||||||
|
if ( vAPI.webextFlavor.soup.has('firefox') ) {
|
||||||
|
fetchableProps.hostnameSwitchesString += '\nno-csp-reports: * true';
|
||||||
|
}
|
||||||
toFetch(µb.localSettings, fetchableProps);
|
toFetch(µb.localSettings, fetchableProps);
|
||||||
toFetch(µb.userSettings, fetchableProps);
|
toFetch(µb.userSettings, fetchableProps);
|
||||||
toFetch(µb.restoreBackupSettings, fetchableProps);
|
toFetch(µb.restoreBackupSettings, fetchableProps);
|
||||||
|
|
Loading…
Reference in New Issue