Firefox undo close window/recover closed window

[Kirrus: Say hello to my brother, Garreth, who wrote this post. He’ll be posting every now and then :))

I am in the habit of keeping a million tabs open and having Firefox automatically restore them when I reopen

([main]\{startup}\when Firefox starts – show my windows and tabs from last time).

Unfortunately this time I left open a popup window and clicked the X close button, thereby killing all my precious tabs!

I have seen on a forum that this can be avoided by clicking File\Exit, but I’m already in the habit of Xing everything, and besides I needed my tabs back!

I found on another forum the name of the file sessionstore.bak, so I did a search and lo and behold it found a couple of session files in my Firefox profile directory. I cracked open the .bak one in notepad and there amidst loads of junk was the urls/tabs I had open.

How to

  1. I Searched for sessionstore.bak, and opened containing folder
  2. used ‘taskkill /im firefox.exe’ (yes windows xp does have a handy kill command :P),
  3. deleted sessionstore.js to the recycle bin,
  4. renamed sessionstore.bak to .js and
  5. started firefox again.

Firefox of course falls for my fake ‘crash’ and prompts me to recover my precious tabs. A swift click later and Lo and behold my tabs were restored!

I’ve now installed session manager add in again and set the ‘undo close window’ feature. Apparently Mozilla are going to integrate the feature in 3.1. (That is 3.1 not 3.01, so not just yet :'( ).

Enable Undo close window and set that number of tabs to high!

Enable Undo close window and set that number of tabs to high!

3 thoughts on “Firefox undo close window/recover closed window

  1. Pingback: Kirrus’ Blog » Prevent Adobe Acrobat Crashing Firefox

Leave a Reply

Your email address will not be published. Required fields are marked *