1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

Enable broad no-csp-reports rule only in Firefox

Related commit:
- 7d90f97aa1
This commit is contained in:
Raymond Hill 2020-12-16 07:02:55 -05:00
parent 095924aa50
commit bc9b8a1330
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -233,7 +233,6 @@ const createDefaultProps = function() {
].join('\n'),
'urlFilteringString': '',
'hostnameSwitchesString': [
'no-csp-reports: * true',
'no-large-media: behind-the-scene false',
].join('\n'),
'lastRestoreFile': '',
@ -243,6 +242,10 @@ const createDefaultProps = function() {
'netWhitelist': µb.netWhitelistDefault,
'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.userSettings, fetchableProps);
toFetch(µb.restoreBackupSettings, fetchableProps);