Commit 146731f2 authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1575273 - Add cryptomining and fingerprinting to tracking protection policies. r=johannh

Differential Revision: https://phabricator.services.mozilla.com/D42942

--HG--
extra : moz-landing-system : lando
parent 7766340a
......@@ -611,6 +611,20 @@ var Policies = {
setAndLockPref("privacy.trackingprotection.enabled", false);
setAndLockPref("privacy.trackingprotection.pbmode.enabled", false);
}
if (param.Cryptomining) {
setDefaultPref(
"privacy.trackingprotection.cryptomining.enabled",
param.Cryptomining,
param.Locked
);
}
if (param.Fingerprinting) {
setDefaultPref(
"privacy.trackingprotection.fingerprinting.enabled",
param.Fingerprinting,
param.Locked
);
}
},
},
......
......@@ -292,7 +292,13 @@
},
"Locked": {
"type": "boolean"
}
},
"Cryptomining": {
"type": "boolean"
},
"Fingerprinting": {
"type": "boolean"
},
},
"required": ["Value"]
},
......
......@@ -90,6 +90,20 @@ const POLICIES_TESTS = [
},
},
{
policies: {
EnableTrackingProtection: {
Cryptomining: true,
Fingerprinting: true,
Locked: true,
},
},
lockedPrefs: {
"privacy.trackingprotection.cryptomining.enabled": false,
"privacy.trackingprotection.fingerprinting.enabled": false,
},
},
// POLICY: OverrideFirstRunPage
{
policies: { OverrideFirstRunPage: "https://www.example.com/" },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment