It is impossible to disable session restore on system restart
Categories
(Firefox :: Session Restore, enhancement, P5)
Tracking
()
People
(Reporter: christopherJTRent, Unassigned)
Details
(Keywords: triaged)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Steps to reproduce:
Disabled session restore in about:config by setting the various booleans and integers to values that should prevent sessions from being restored on reboot
Actual results:
Sessions were restored on reboot despite my best efforts
Expected results:
There should have been an option to prevent session restore on reboot and instead open a new clean session.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Session Restore' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 2•3 years ago
|
||
Update: There is theoretically an official solution to this bug.
The official solution is terrible.
The developer who originally designed this system expected every user to always use the "quit" menu option before restarting their computer.
This is not an edge-case bug, it's something that the vast majority of users will encounter at some point. Default behavior should not necessarily change, I.E sessions should by default still be restored on reboot, if only to prevent computer illiterates from losing their mind every time windows updates itself. However: the configuration options should be present to disable this behavior via about:config if desired by the end user.
As is, I have a temporary solution, specifically revoking write permissions on all sessionstore related files in my filesystem. This should not be the only/most effective solution.
Comment 3•3 years ago
|
||
Hello! Thank you for submitting this issue I will mark this as NEW in order to get our developers involved and take it into consideration in further releases
Have a nice day!
Reporter | ||
Comment 4•3 years ago
|
||
Update to this bug.
This is a problem with the behavior of https://searchfox.org/mozilla-release/source/browser/components/sessionstore/SessionStore.jsm#2246
The code linked above forcibly sets browser.sessionstore.resume_session_once and browser.sessionstore.resuming_after_os_restart to true, and does not include any checks to see if the user might prefer that their session not be restored.
Simple potential fix: Add a boolean flag to about:config and just check it before doing all that nonsense. Maybe something along the lines of browser.sessionstore.enable_resume_after_OS_restart.
Hi Christopher,
Thank you for flagging the issue to us.
Dao, I'm flagging this as something we might want to fix because of privacy/security considerations. Especially in the current political situation in many countries where it might be a life and death situation for someone to have their previous browser session restored after they rebooted their desktop.
I would rather accept a patch, but if it's 1-2 SP push, I would consider addressing this.
Description
•