Bug 1907390 - Add BounceTrackingProtection prefs to ETP Strict configuration. r=anti-tracking-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,manuel

Differential Revision: https://phabricator.services.mozilla.com/D225681
This commit is contained in:
Paul Zuehlcke
2024-10-16 11:56:49 +00:00
parent 9f857b20cb
commit abe4737ee9
5 changed files with 75 additions and 7 deletions

View File

@@ -5246,6 +5246,7 @@ var ContentBlockingCategoriesPrefs = {
"privacy.fingerprintingProtection": null,
"privacy.fingerprintingProtection.pbmode": null,
"network.cookie.cookieBehavior.optInPartitioning": null,
"privacy.bounceTrackingProtection.mode": null,
},
standard: {
"network.cookie.cookieBehavior": null,
@@ -5267,6 +5268,7 @@ var ContentBlockingCategoriesPrefs = {
"privacy.fingerprintingProtection": null,
"privacy.fingerprintingProtection.pbmode": null,
"network.cookie.cookieBehavior.optInPartitioning": null,
"privacy.bounceTrackingProtection.mode": null,
},
};
let type = "strict";
@@ -5475,6 +5477,16 @@ var ContentBlockingCategoriesPrefs = {
"network.cookie.cookieBehavior.optInPartitioning"
] = false;
break;
case "btp":
this.CATEGORY_PREFS[type]["privacy.bounceTrackingProtection.mode"] =
Ci.nsIBounceTrackingProtection.MODE_ENABLED;
break;
case "-btp":
// We currently consider MODE_ENABLED_DRY_RUN the "off" state. See
// nsIBounceTrackingProtection.idl for details.
this.CATEGORY_PREFS[type]["privacy.bounceTrackingProtection.mode"] =
Ci.nsIBounceTrackingProtection.MODE_ENABLED_DRY_RUN;
break;
default:
console.error(`Error: Unknown rule observed ${item}`);
}