From 6e50c4fba1d25c8912f9a0fe305c4827ef6272f0 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 5 Apr 2019 15:38:13 +0000 Subject: [PATCH] Bug 1533584 - Enable capping the maximum life-time of client-side cookies to seven days on Nightly; r=baku Differential Revision: https://phabricator.services.mozilla.com/D24098 --HG-- extra : moz-landing-system : lando --- modules/libpref/init/StaticPrefList.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/libpref/init/StaticPrefList.h b/modules/libpref/init/StaticPrefList.h index 0f150a392eed..59ff90381324 100644 --- a/modules/libpref/init/StaticPrefList.h +++ b/modules/libpref/init/StaticPrefList.h @@ -2181,11 +2181,17 @@ VARCACHE_PREF( ) // Maximum client-side cookie life-time cap +#ifdef NIGHTLY_BUILD +# define PREF_VALUE 604800 // 7 days +#else +# define PREF_VALUE 0 +#endif VARCACHE_PREF( "privacy.documentCookies.maxage", privacy_documentCookies_maxage, - uint32_t, 0 // Disabled (in seconds, set to 0 to disable) + uint32_t, PREF_VALUE // (in seconds, set to 0 to disable) ) +#undef PREF_VALUE // Anti-fingerprinting, disabled by default VARCACHE_PREF(