diff --git a/Optional-Hardening.md b/Optional-Hardening.md index 36dd8f5..9be0940 100644 --- a/Optional-Hardening.md +++ b/Optional-Hardening.md @@ -99,10 +99,10 @@ user_pref("security.cert_pinning.enforcement_level", 2); *** ### Sanitize on close -#### Option 1: Clear browsing data on shutdown, except browser history +#### Option 1: Clear cookies and cache on shutdown * `☰` *→ Settings → Privacy & Security → Cookies and Site Data → Delete cookies and site data when Firefox is closed* ```javascript -// PREF: clear browsing data on shutdown (except browser history) +// PREF: delete cookies and site data on shutdown user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.clearOnShutdown.cache", true); user_pref("privacy.clearOnShutdown.cookies", true); @@ -111,8 +111,10 @@ user_pref("browser.sessionstore.privacy_level", 2); ``` #### Option 2: Clear all browsing data on shutdown +* `☰` *→ Settings → Privacy & Security → History → Clear history when Firefox closes* + ```javascript -// PREF: clear all browsing data on shutdown +// PREF: delete all browsing data on shutdown user_pref("privacy.sanitize.sanitizeOnShutdown", true); user_pref("privacy.clearOnShutdown.history", true); user_pref("privacy.clearOnShutdown.formdata", true); @@ -124,7 +126,7 @@ user_pref("privacy.clearOnShutdown.siteSettings", false); user_pref("browser.sessionstore.privacy_level", 2); ``` -:warning: If you have session restore enable (_Settings → General → Startup → Open previous windows and tabs_), then you will need to use **Option 1** for session restore to work. +:warning: If you have session restore enable (`☰` _→ Settings → General → Startup → Open previous windows and tabs_), then you will need to use **Option 1** for session restore to work. #### Allow exceptions You can allow exceptions if you want to stay logged in to some sites: