From d1fdcaa31eb408d5fbfe460949f22f09f5a14ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Fri, 23 Apr 2021 17:04:37 +0200 Subject: [PATCH] Allow to set exceptions for cookies. All others will be cleared on session close. --- firefox/user.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/firefox/user.js b/firefox/user.js index 0f9815c..4602ad6 100755 --- a/firefox/user.js +++ b/firefox/user.js @@ -120,12 +120,15 @@ user_pref("media.navigator.video.enabled", false); user_pref("media.peerconnection.enabled", false); user_pref("media.video_stats.enabled", false); user_pref("media.webspeech.synth.enabled", false); -user_pref("network.cookie.cookieBehavior", 5); +// 5 = isolate +user_pref("network.cookie.cookieBehavior", 4); user_pref("network.dns.disablePrefetch", true); user_pref("network.ftp.enabled", false); user_pref("network.captive-portal-service.enabled", false); user_pref("network.connectivity-service.enabled", false); +// set policy to 3 lifetime.days to kick in, see http://kb.mozillazine.org/Network.cookie.lifetimePolicy user_pref("network.cookie.lifetimePolicy", 2); +//user_pref("network.cookie.lifetime.days", 5) user_pref("network.http.altsvc.enabled", false); user_pref("network.http.altsvc.oe", false); user_pref("network.http.referer.XOriginPolicy", 2); @@ -133,6 +136,8 @@ user_pref("network.http.speculative-parallel-limit", 0); user_pref("network.IDN_show_punycode", true); user_pref("network.manage-offline-status", false); user_pref("network.security.esni.enabled", true); +user_pref("privacy.purge_trackers.enabled", true); +user_pref("privacy.partition.network_state", true); // allow local storage, so websites won't break user_pref("offline-apps.allow_by_default", true); //user_pref("offline-apps.quota.warn", 0); @@ -144,14 +149,16 @@ user_pref("places.history.enabled", true); user_pref("plugin.default.state", 0); user_pref("plugins.update.url", ""); user_pref("privacy.clearOnShutdown.cache", true); -user_pref("privacy.clearOnShutdown.cookies", true); +// allow to set exceptions +user_pref("privacy.clearOnShutdown.cookies", false); user_pref("privacy.clearOnShutdown.downloads", true); // keep history user_pref("privacy.clearOnShutdown.history", false); user_pref("privacy.clearOnShutdown.offlineApps", true); user_pref("privacy.clearOnShutdown.sessions", true); user_pref("privacy.clearOnShutdown.formdata", true); -user_pref("privacy.clearOnShutdown.siteSettings", true); +// allow to set exceptions +user_pref("privacy.clearOnShutdown.siteSettings", false); user_pref("privacy.cpd.offlineApps", true); user_pref("privacy.cpd.passwords", true); user_pref("privacy.cpd.siteSettings", true);