Commit 62c25744 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 9da1dae4
......@@ -611,6 +611,20 @@ var Policies = {
setAndLockPref("privacy.trackingprotection.enabled", false);
setAndLockPref("privacy.trackingprotection.pbmode.enabled", false);
}
if ("Cryptomining" in param) {
setDefaultPref(
"privacy.trackingprotection.cryptomining.enabled",
param.Cryptomining,
param.Locked
);
}
if ("Fingerprinting" in param) {
setDefaultPref(
"privacy.trackingprotection.fingerprinting.enabled",
param.Fingerprinting,
param.Locked
);
}
},
},
......
......@@ -292,9 +292,14 @@
},
"Locked": {
"type": "boolean"
},
"Cryptomining": {
"type": "boolean"
},
"Fingerprinting": {
"type": "boolean"
}
},
"required": ["Value"]
}
},
"Extensions": {
......
......@@ -90,6 +90,20 @@ const POLICIES_TESTS = [
},
},
{
policies: {
EnableTrackingProtection: {
Cryptomining: true,
Fingerprinting: true,
Locked: true,
},
},
lockedPrefs: {
"privacy.trackingprotection.cryptomining.enabled": true,
"privacy.trackingprotection.fingerprinting.enabled": true,
},
},
// POLICY: OverrideFirstRunPage
{
policies: { OverrideFirstRunPage: "https://www.example.com/" },
......
Supports Markdown
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