Closed KAGEYAM4 closed 1 month ago
To make this a bit easier, let's assume that all the about:config
prefs that start with privacy.clearOnShutdown
and privacy.clearOnShutdown_v2
are reset and in their default state.
In Firefox stable 129: To keep site settings and history, but clear cookies and other site data:
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false);
On my personal profile, it looks like I also still have privacy.clearOnShutdown.offlineApps
set to true
, but I don't know if that pref does anything anymore now that Mozilla has migrated these prefs over to privacy.clearOnShutdown_v2
.
To clear everything except site settings (including history), a user only needs to enable:
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
The privacy.clearOnShutdown_v2
prefs all default to true
except for siteSettings
.
I can make all of this more apparent when I redo this section of the Optional Hardening guide.
user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false);
I will also use this then.
By the way to reset settings, instead of going and usign false
, can i just delete prefs.js
? Or does it contain others data too.
can i just delete prefs.js?
I don't advise that unless it's a brand new profile.
I have updated the Optional Hardening explainer: https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening#sanitize-on-close
BEFORE YOU BEGIN
I have attempted the following troubleshooting suggestions:
REPORT
https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening#option-2-clear-only-cookies-and-cache-on-shutdown when using this, history still gets cleared, after checking
privacy.clearOnShutdown.history
inabout:config
it is defaulting totrue
. I checked multiple times by creating new profiles.To Reproduce
open previous window and Tabs
BetterFox
user.js with these options added - https://github.com/yokoffing/Betterfox/wiki/Optional-Hardening#option-2-clear-only-cookies-and-cache-on-shutdownExpected behavior I want to use restore previous session where all my tabs are restored.
Version: v129
My User.js settings