I was looking through the mozillaZine Firefox Bugs forum last night and came across a thread titled Improper shutdown of Firefox when shutting down computer. Turns out this is related to Bug 333907 and appear to have become more of an issue in Firefox 2 builds with Windows XP (although I thought I saw Mac mentioned in Bug 342885). Instead of closing Firefox before shutting down Windows, users are letting Windows close all the programs as it shuts down. Even with this method, Firefox is still closing normally, that is to say users are not getting the Unresponsive Program dialog box. However Firefox on the other hand, is treating this type of shut down as if it was not properly shut down and displays this warning when relaunched. This should be fixed with the 184.108.40.206 build, but in the mean time there are couple ways to fix this via about:config:
- Add a NEW Boolean pref called: browser.sessionstore.resume_from_crash and set it to false
Now, since I use the session restore to have Firefox start off where I left off (Show my windows and tabs from last time) I wasn’t sure what would happen if I made any of these above changes. One thing to keep in mind, I normally close all my applications before close Windows. Since Firefox was eating up a lot of memory and I had rebooted in a while I went ahead and restarted Windows without first closing anything. After Windows finished booting and I restarted Firefox I got the warning dialog.
So in a new profile I ran a little experiment just to see what would happen. First, I made sure in my Options… I had ‘When Firefox starts’ set to ‘Show my windows and tabs from last time’. Next I added the string from the second tip, I also had several tabs open then with Firefox (and everything else still open), I went ahead and shut down Windows again (I later discovered ‘Log Off’ would also produce the same “crash” effect). After the reboot, I relaunched Firefox (with the testing profile) and it behaved as if I had shut it down prior to exiting Windows.
Now, if you are not using the session restore feature, the first option would be fine for your use. Just keep in mind doing this will completely disable the session restore upon a “crash” or Windows forced shut-down. If you do use the session restore, stick to second option. Further you should only use one of these fixes since option #1 completely disables the session restore there is no need to auto-close the dialog box.