Firefox “restore dialog”-patch

If browser.startup.page is set to 3 (“When firefox starts” -> “Show my windows and tabs from last time”) firefox should always restore automatically the browsing session (but after a crash).
Each time after logging out (at least from kde) the restore dialog appears (“Restore session” / “Start new session”).
This is quite annoying for me since I never pressed “Start new session”, but by mistake.

The ideal solution is that logging out will not result in an improper shutdown of firefox, but I wrote a small patch that introduces the browser.sessionstore.resume_session_always setting which works for me.

I also updated Gentoo’s ebuild for firefox 2.0.0.6 to use this patch (just extract it to your /usr/local/portage directory).

Update: The above bug is fixed in firefox3. As a work around, you can create a new string preference “browser.sessionstore.restore_prompt_uri” and set it to “javascript:window.close();” (without the quotes).
Unfortunately I could not find a way to make this work with NoScript (yet).

Update #2:
Good news (:
Giorgio Maone kindly updated the NoScript plugin to allow the trick above. You currently have to use the development version (1.1.6.18).

This entry was posted by ra on August 30, 2007 at 6:41pm. It is filed under English, Firefox, Tips. You can follow any comments to this entry through the RSS 2.0 feed.

Feel free to read the comments, or leave one of your own!

Also, if you're feeling social, you can Digg this, add it to del.icio.us, add it to Technorati, or add it to Newsvine!

Comments for “Firefox “restore dialog”-patch”



  1. tommaso Said:

    one word: great !!

    greetings



  2. Jesus Said:

    This is what I’ve been looking for for quite some time now :D
    Works great, thanks!!