arkenfox / user.js

Firefox privacy, security and anti-tracking: a comprehensive user.js template for configuration and hardening
MIT License
9.43k stars 507 forks source link

Overrides won't work #1859

Closed cruthachail closed 1 week ago

cruthachail commented 1 week ago

I've been trying to set my overrides to restore my previous session and to not clear my history or downloads whenever closing, but the overrides don't appear to be persisting. Whenever I close then re-open my browser, the tabs I previously had all vanish. Below is the user-overrides.js that I'm currently using.

/*** MY OVERRIDES ***/
/* startup & session restore: 0102 + 1020 */
user_pref("browser.startup.page", 3); // 0102 3=resume previous session: requires history to be kept
user_pref("browser.sessionstore.max_windows_undo", 30); // default 3 windows
user_pref("browser.sessionstore.privacy_level", 0);
user_pref("browser.sessionstore.resume_session_once", true);    // 1020
   //user_pref("browser.startup.homepage", "https://www.startpage.com/");   //0103
/* don't clear things on close: 2803 */
user_pref("privacy.clearOnShutdown.cache", false);
user_pref("privacy.clearOnShutdown.cookies", false);
user_pref("privacy.clearOnShutdown.history", false); // required for session restore
/* if I use Ctrl-Shift-Del: match clearOnShutdown: 2804 */
user_pref("privacy.cpd.cache", false);
user_pref("privacy.cpd.cookies", false);
user_pref("privacy.cpd.history", false); // fuuuck: don't accidentally wipe my session restore
/* fucking autoplay */
user_pref("media.autoplay.default", 2); // 2030 0=Allowed (default), 1=Blocked, 2=Prompt
/* END: custom check for achievement award ***/
user_pref("_user.js.parrot", "Fukyeah, I survived the overrides and got this T-Shirt");

Could anyone lend me a hand and perhaps point me in the right direction?

rusty-snake commented 1 week ago

Did you run the updater?

cruthachail commented 1 week ago

Did you run the updater?

I did, it would appear the following below had been the culprit.

/* Additional settings that could be causing issues with restore session. */
user_pref("privacy.clearOnShutdown.cache", true);     // [DEFAULT: true]
user_pref("privacy.clearOnShutdown_v2.cache", true);  // [FF128+] [DEFAULT: true]
user_pref("privacy.clearOnShutdown.downloads", false); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.formdata", true);  // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.history", false);   // [DEFAULT: true]
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", false); // [FF128+] [DEFAULT: true]