A way to always have a clean session (no tabs) everytime Firefox starts?
For my needs I must have only one tab open when firing Firefox.
I've tried the following parameters in about:config:
- browser.sessionstore.enabled = false
- browser.sessionstore.max_concurrent_tabs = 1
- browser.sessionstore.max_resumed_crashes = 0
- browser.sessionstore.resume_from_crash = false
- browser.tabs.loadInBackground = false
However, it occasionally opens two or three tabs when I start Firefox.
It is usually closed by killing the process, but that shouldn't be an issue as it's told to not store the sessions and not restoring them after a "crash".
Is there something else I should look at?
Thanks a lot in advance.
PS: Although they aren't listed in the troubleshooting information below, the aforementioned parameters do actually display as modified in about:config.
Modified
Chosen solution
Firefox 4 will always try to restore a session if you let it crash by killing that process because that leaves a file sessionstore.js with a running flag. Firefox 4 uses sessionstore.js to store the App Tabs and Panorama tab groups, so if you use any of those then they get lost. If Firefox is closed properly then the last session can be restored via the History menu or a button on the about:home page.
You can try to launch Firefox with one specific page by adding that URL to the command line in the desktop shortcut. I haven't tested if that works with a forced close, so you have to try that yourself to see if that works.
Read this answer in context 👍 0All Replies (4)
Chosen Solution
Firefox 4 will always try to restore a session if you let it crash by killing that process because that leaves a file sessionstore.js with a running flag. Firefox 4 uses sessionstore.js to store the App Tabs and Panorama tab groups, so if you use any of those then they get lost. If Firefox is closed properly then the last session can be restored via the History menu or a button on the about:home page.
You can try to launch Firefox with one specific page by adding that URL to the command line in the desktop shortcut. I haven't tested if that works with a forced close, so you have to try that yourself to see if that works.
cor-el, thanks a lot for your reply. It's very helpful, honestly. I still have to try some changes based on your answer, and as soon as I get some positive results, will mark it as solved.
Launching Firefox with a URL as an argument doesn't work, unfortunately. It was actually the first thing I tried, but it opens the URL as a new tab, so my problem is still there.
Thanks again. Will do some research now :)
A possibility is to use a script when you launch Firefox and delete the file sessionstore.js in the profile folder before starting Firefox. That will only work for the profile that you specify in that script file, so it is best to specify that profile for Firefox as well (-P "profile name")
Thank you very much for your insights, cor-el. Seems to be working so far :)