Bug 1695050 - Part 1: Add a pref for controlling the cookieBehavior for Private Brwosing Mode. r=dimi,droeh

Differential Revision: https://phabricator.services.mozilla.com/D109044
This commit is contained in:
Tim Huang 2021-03-29 11:01:50 +00:00
parent 2253d51d13
commit 5b93148330
3 changed files with 11 additions and 0 deletions

View File

@ -1694,9 +1694,11 @@ pref("media.gmp-provider.enabled", true);
#ifdef NIGHTLY_BUILD
// Enable Dynamic First-Party Isolation in Nightly.
pref("network.cookie.cookieBehavior", 5 /* BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN */);
pref("network.cookie.cookieBehavior.pbmode", 5 /* BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN */);
#else
// Enable blocking access to storage from tracking resources by default.
pref("network.cookie.cookieBehavior", 4 /* BEHAVIOR_REJECT_TRACKER */);
pref("network.cookie.cookieBehavior.pbmode", 4 /* BEHAVIOR_REJECT_TRACKER */);
#endif
// Enable fingerprinting blocking by default for all channels, only on desktop.

View File

@ -102,6 +102,9 @@ pref("network.predictor.preserve", 50); // percentage of predictor data to keep
// Use JS mDNS as a fallback
pref("network.mdns.use_js_fallback", false);
// CookieBehavior setting for the private browsing.
pref("network.cookie.cookieBehavior.pbmode", 4);
/* How many times should have passed before the remote tabs list is refreshed */
pref("browser.display.remotetabs.timeout", 10);

View File

@ -8458,6 +8458,12 @@
value: false
mirror: always
# The cookieBehavior to be used in Private Browsing mode.
- name: network.cookie.cookieBehavior.pbmode
type: RelaxedAtomicInt32
value: 0 # accept all cookies
mirror: always
# Stale threshold for cookies in seconds.
- name: network.cookie.staleThreshold
type: uint32_t