From 5e054106256255d84186f26e44b27c500e228203 Mon Sep 17 00:00:00 2001 From: Bert van der Weerd Date: Tue, 30 Mar 2021 16:02:25 +0200 Subject: [PATCH] New cookie behavior in -experimental allows for cookie exceptions to be honored. (after a restart of LW) --- build.sh | 10 ++++++++++ patches/experimental/librewolf-config.patch | 13 ++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b81d342..15cc24b 100755 --- a/build.sh +++ b/build.sh @@ -396,6 +396,15 @@ if [[ "$*" == *clean* ]]; then clean done_something=1 fi +if [[ "$*" == *all* ]]; then + fetch + extract + do_patches + build + experimental=experimental + artifacts_win + done_something=1 +fi if [[ "$*" == *git_subs* ]]; then git_subs done_something=1 @@ -525,6 +534,7 @@ Generic utility functionality: rustup - perform a rustup for this user. clean - remove generated cruft. + all - build all, produce all artifacts including -experimental. git_subs - update git submodules. config_diff - diff between my .cfg and dist .cfg file. (win10) policies_diff - diff between my policies and the dist policies. (win10) diff --git a/patches/experimental/librewolf-config.patch b/patches/experimental/librewolf-config.patch index 0a9a899..2bd3274 100644 --- a/patches/experimental/librewolf-config.patch +++ b/patches/experimental/librewolf-config.patch @@ -1,5 +1,5 @@ diff --git a/librewolf.cfg b/librewolf.cfg -index 1ad0cea..c6907b4 100644 +index 1ad0cea..0d9df09 100644 --- a/librewolf.cfg +++ b/librewolf.cfg @@ -389,7 +389,7 @@ defaultPref("extensions.ui.experiment.hidden", false); @@ -29,3 +29,14 @@ index 1ad0cea..c6907b4 100644 // Pref : Disable clipboard event detection (onCut/onCopy/onPaste) via Javascript // Disabling clipboard events breaks Ctrl+C/X/V copy/cut/paste functionaility in +@@ -2773,3 +2773,10 @@ defaultPref("devtools.selfxss.count", 0); + // enable HTTPS only mode by default + defaultPref("dom.security.https_only_mode", true); + defaultPref("dom.security.https_only_mode_ever_enabled", true); ++ ++ ++// attempting new cookie behavior (use Settings > Cookies and Site Data > Manage Exceptions) ++// (please not that after you added a site, you must close LibreWolf before the cookies/etc are actually saved.) ++defaultPref("privacy.clearOnShutdown.cookies", false); ++defaultPref("privacy.clearOnShutdown.offlineApps", false); ++defaultPref("network.cookie.lifetimePolicy", 2);