mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
2253d51d13
commit
5b93148330
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user