Commit 0100cffc authored by Michael Kaply's avatar Michael Kaply
Browse files

Bug 1447353 - If tracking protection explicitly disabled, lock it. r=Felipe

MozReview-Commit-ID: Fe2oUOuCJxN

--HG--
extra : rebase_source : 0649bb2d4fae83a98040537ddb8d75d1ee870faf
parent ed088d0c
...@@ -266,12 +266,17 @@ var Policies = { ...@@ -266,12 +266,17 @@ var Policies = {
"EnableTrackingProtection": { "EnableTrackingProtection": {
onBeforeUIStartup(manager, param) { onBeforeUIStartup(manager, param) {
if (param.Locked) { if (param.Value) {
setAndLockPref("privacy.trackingprotection.enabled", param.Value); if (param.Locked) {
setAndLockPref("privacy.trackingprotection.pbmode.enabled", param.Value); setAndLockPref("privacy.trackingprotection.enabled", true);
setAndLockPref("privacy.trackingprotection.pbmode.enabled", true);
} else {
setDefaultPref("privacy.trackingprotection.enabled", true);
setDefaultPref("privacy.trackingprotection.pbmode.enabled", true);
}
} else { } else {
setDefaultPref("privacy.trackingprotection.enabled", param.Value); setAndLockPref("privacy.trackingprotection.enabled", false);
setDefaultPref("privacy.trackingprotection.pbmode.enabled", param.Value); setAndLockPref("privacy.trackingprotection.pbmode.enabled", false);
} }
} }
}, },
......
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