How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

How to make Firefox ask to save tabs on exit

Firefox logo

Sadly the newer versions of Firefox no longer ask you if you want to save the open tabs when you close Firefox. This is probably because of the new feature that has been implemented in the general options which allows Firefox to always remember the open tabs and windows upon closing.

Firefox save windows and tabs option

But what happens if you don’t always want to save the open tabs ?

To get back the original functionality of Firefox, that used to show a message on exit asking if we want to save the open tabs or not we need to dig a bit in Firefox’s configuration settings.

  1. Type about:config in your address bar and press enter.
  2. There are three entries we are interested in (four if you are using Firefox 12 or higher).
    • browser.tabs.warnOnClose
    • browser.warnOnQuit
    • browser.warnOnRestart
    • browser.showQuitWarning (for Firefox 12 and higher)

    Search for each one individually and make sure that their value is set to true.

  3. Restart Firefox.

Now everytime you will close Firefox (assuming you have tabs open) you will get a message asking you if you want to save the current tabs or not.

Firefox save tabs message

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

5 Responses to How to make Firefox ask to save tabs on exit

  1. _nd345 says:

    still true. thank you. change is not always better mozilla!

  2. Linda Pannuto says:

    The browser settings were all set to true, but I still do not get the box with the option to “Save and Quit” if I have another window open with multiple tabs I get the warning message about closing multiple tabs, but when I close the last Firefox window it just closes and tabs are not there when I reopen Firefox

    • CooLMinE says:

      Is your Firefox running in private mode ? Private mode doesn’t support the saving of the tabs using the above settings.

  3. MrX1980 says:

    Hi, there seems to be a regression since Firefox 28, that the tabs will not be restored on next start.
    https://bugzilla.mozilla.org/show_bug.cgi?id=953391

Leave a Reply

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