diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-10 22:19:08 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-10 22:19:08 +0000 |
commit | b83cac69d9a17f9ac5e881c68d7361db627cbd42 (patch) | |
tree | 6d4de81dcc448d6c670b372d1e2bd6cc770cd0ba /home | |
parent | 8fc2faf45e4a055dcf308181090e9a5d084919e3 (diff) |
firefox disable session restore so no two tabs for headless dyafk
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.mozilla/firefox/dyafk/user-overrides.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home/xyz/.mozilla/firefox/dyafk/user-overrides.js b/home/xyz/.mozilla/firefox/dyafk/user-overrides.js index cd497745..f8e63567 100644 --- a/home/xyz/.mozilla/firefox/dyafk/user-overrides.js +++ b/home/xyz/.mozilla/firefox/dyafk/user-overrides.js @@ -10,3 +10,10 @@ user_pref("network.trr.mode", 5); user_pref("dom.ipc.processCount", 1); // block all video and audio autoplay user_pref("media.autoplay.default", 5); + +// kill firefox process then start again may result in an extra tab asking for restore session or two tabs same url, these config maybe can disable that +// https://wiki.mozilla.org/Session_Restore +// https://support.mozilla.org/en-US/questions/1182594 +user_pref("browser.sessionstore.resume_from_crash", false); +// not sure if this is needed: +//user_pref("browser.sessionstore.max_resumed_crashes", 0); |