зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543280 - Enable FP and CM in strict in all channel, enable FP and CM in standard for nightly and early beta. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D27315 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0d8cc55ffb
Коммит
3897073a3f
|
@ -1542,10 +1542,14 @@ pref("browser.ping-centre.production.endpoint", "https://tiles.services.mozilla.
|
|||
// Enable GMP support in the addon manager.
|
||||
pref("media.gmp-provider.enabled", true);
|
||||
|
||||
#ifdef EARLY_BETA_OR_EARLIER
|
||||
// Enable blocking access to storage from tracking resources only in nightly
|
||||
// and early beta. By default the value is 0: BEHAVIOR_ACCEPT
|
||||
#ifdef EARLY_BETA_OR_EARLIER
|
||||
pref("network.cookie.cookieBehavior", 4 /* BEHAVIOR_REJECT_TRACKER */);
|
||||
// Enable fingerprinting blocking by default only in nightly and early beta.
|
||||
pref("privacy.trackingprotection.fingerprinting.enabled", true);
|
||||
// Enable cryptomining blocking by default only in nightly and early beta.
|
||||
pref("privacy.trackingprotection.cryptomining.enabled", true);
|
||||
#endif
|
||||
|
||||
pref("browser.contentblocking.allowlist.storage.enabled", true);
|
||||
|
@ -1585,12 +1589,13 @@ pref("browser.contentblocking.fingerprinting.preferences.ui.enabled", true);
|
|||
// "cookieBehavior3": cookie behaviour BEHAVIOR_LIMIT_FOREIGN
|
||||
// "cookieBehavior4": cookie behaviour BEHAVIOR_REJECT_TRACKER
|
||||
// One value from each section must be included in each browser.contentblocking.features.* pref.
|
||||
pref("browser.contentblocking.features.strict", "tp,tpPrivate,cookieBehavior4,-cm,-fp");
|
||||
|
||||
pref("browser.contentblocking.features.strict", "tp,tpPrivate,cookieBehavior4,cm,fp");
|
||||
// Enable blocking access to storage from tracking resources only in nightly
|
||||
// and early beta. By default the value is "cookieBehavior0": BEHAVIOR_ACCEPT
|
||||
// Enable cryptomining blocking in standard in nightly and early beta.
|
||||
// Enable fingerprinting blocking in standard in nightly and early beta.
|
||||
#ifdef EARLY_BETA_OR_EARLIER
|
||||
pref("browser.contentblocking.features.standard", "-tp,tpPrivate,cookieBehavior4,-cm,-fp");
|
||||
pref("browser.contentblocking.features.standard", "-tp,tpPrivate,cookieBehavior4,cm,fp");
|
||||
#else
|
||||
pref("browser.contentblocking.features.standard", "-tp,tpPrivate,cookieBehavior0,-cm,-fp");
|
||||
#endif
|
||||
|
|
|
@ -151,6 +151,7 @@ add_task(async function testContentBlockingStandardCategory() {
|
|||
};
|
||||
|
||||
for (let pref in prefs) {
|
||||
Services.prefs.clearUserPref(pref);
|
||||
switch (Services.prefs.getPrefType(pref)) {
|
||||
case Services.prefs.PREF_BOOL:
|
||||
prefs[pref] = Services.prefs.getBoolPref(pref);
|
||||
|
@ -169,8 +170,8 @@ add_task(async function testContentBlockingStandardCategory() {
|
|||
Services.prefs.setBoolPref(TP_PREF, true);
|
||||
Services.prefs.setBoolPref(TP_PBM_PREF, false);
|
||||
Services.prefs.setIntPref(NCB_PREF, Ci.nsICookieService.BEHAVIOR_REJECT_TRACKER);
|
||||
Services.prefs.setBoolPref(FP_PREF, true);
|
||||
Services.prefs.setBoolPref(CM_PREF, true);
|
||||
Services.prefs.setBoolPref(FP_PREF, !Services.prefs.getBoolPref(FP_PREF));
|
||||
Services.prefs.setBoolPref(CM_PREF, !Services.prefs.getBoolPref(CM_PREF));
|
||||
|
||||
for (let pref in prefs) {
|
||||
switch (Services.prefs.getPrefType(pref)) {
|
||||
|
@ -272,7 +273,7 @@ add_task(async function testContentBlockingCustomCategory() {
|
|||
|
||||
// Changing the FP_PREF and CM_PREF should necessarily set CAT_PREF to "custom"
|
||||
for (let pref of [FP_PREF, CM_PREF]) {
|
||||
Services.prefs.setBoolPref(pref, true);
|
||||
Services.prefs.setBoolPref(pref, !Services.prefs.getBoolPref(pref));
|
||||
await TestUtils.waitForCondition(() => Services.prefs.prefHasUserValue(pref));
|
||||
is(Services.prefs.getStringPref(CAT_PREF), "custom", `${CAT_PREF} has been set to custom`);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче