Mozilla changes Firefox's Warn on Quit logic - gHacks Tech News

Mozilla changes Firefox's Warn on Quit logic

Mozilla plans to change the "warn on quit" logic of the Firefox web browser in the upcoming Firefox 65 release.

Current versions of the Firefox web browser warn users under certain conditions by default when they use a keyboard shortcut or the quit commands in the menus to exit the browser. Firefox users may use Ctrl-Shift-Q on Windows, Ctrl-Q on Linux, and Cmd-Q on Mac OS X to quit the browser.

Firefox displays a warning in this case if multiple tabs are open but only if session restore is not enabled, if the user did not modify the preference responsible for the behavior, and if the browser is not in private browsing mode.

firefox exit warning

Mozilla's train of thought was that Firefox would restore the tabs on the next start of the browser if session restore was enabled, and that it was not necessary therefore to warn users specifically.

A nine year old bug report on Bugzilla@Mozilla highlights the reasoning behind the change. What it boils down to is that Firefox should not ignore the "warn on quit" preference of the browser even if session restore is enabled. Turning on session restore should not disable quit warnings by default in the browser.

However, when turning on Session Restore, this "never ask again" behavior is automatically enabled, which is confusing. I appreciate the logic ("you're not losing anything by quitting since session restore is awesome"), but it still causes a long startup time if you do it accidentally.

Firefox 65 will display the warning even if session restore is enabled by default. Mozilla removed the session restore case from the process.

Please note that Mozilla aims to make the change in Firefox 65 but that development and testing is ongoing and that things may change before release.

Old Firefox:

Does not display a warning if..

  • Only 1 tab is open in one window.
  • The session will be restored on startup.
  • The preference browser.warnOnQuit is set to false.
  • The browser is in Private Browsing Mode.
  • The browser will be restarted.

New Firefox:

Firefox 65 or newer won't display a warning if..

  • Only 1 tab is open in one window.
  • The preferences browser.warnOnQuit or browser.warnOnClose are set to false.
  • The browser is in Private Browsing Mode.
  • The browser will be restarted.

Closing Words

It is easy enough to disable warnings if you use session restore or don't need them in general. You could set the preferences to false to do so. (via Sören Hentzschel)

Google retired the command Ctrl-Shift-Q in Chrome recently.

Now You: Have you disable quit warnings in Firefox?

Summary
Mozilla changes Firefox's Warn on Quit logic
Article Name
Mozilla changes Firefox's Warn on Quit logic
Description
Mozilla plans to change the "warn on quit" logic of the Firefox web browser in the upcoming Firefox 65 release.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


Previous Post: «
Next Post: »

Comments

  1. happysurf said on November 27, 2018 at 1:55 pm
    Reply

    But with the option “Restore previous session” allowed and the string “browser.warnOnQuit” set on true, every time I close the browser, I get the warning message like in the old Firefox or not?

  2. Anonymous said on November 27, 2018 at 3:35 pm
    Reply

    9 years to change 5 lines of code lol

    1. Weilan said on November 27, 2018 at 5:33 pm
      Reply

      They still have their history and bookmarks manager in a sidebar or a separate window. xD xD xD
      All the other browsers have moved those into separate tabs…

      Firefox may try to copy Chrome all they want, but they will always be behind.

      1. John Fenderson said on November 27, 2018 at 6:17 pm
        Reply

        @Weilan: “All the other browsers have moved those into separate tabs…”

        Which is a trend I absolutely hate. Having that stuff in a tab is pain in the butt.

      2. Alex said on November 27, 2018 at 8:57 pm
        Reply

        @Weilan, is opening History and Bookmarks in tabs supposed to be modern? The “wise” and hip thing to do? Says who?

        If anything, tabs are about website content. Having browser-specific functions opening in a different place than tabs (like a separate window) makes a lot of sense. Throwing everything into tabs is horrible, confusing design – not to mention utterly bland.

        But hey! If “all the other browsers” are doing it, it must be right… right?

      3. lehnerus2000 said on November 28, 2018 at 1:40 am
        Reply

        “They still have their history and bookmarks manager in a sidebar or a separate window. xD xD xD
        All the other browsers have moved those into separate tabs…”
        Yet another reason not to use “All the other browsers …”.

        Note:
        I use FF in Linux and Pale Moon in Windows.

  3. John Fenderson said on November 27, 2018 at 4:59 pm
    Reply

    “Have you disable quit warnings in Firefox?”

    No, I like them. I don’t use Session Restore, though, so I never noticed that the behavior changed when you do. I think Mozilla’s adjustment of how this works is a Good Thing from a usability point of view — it adheres better to the fundamental “no surprising behavior” guideline for user interfaces. If I set a behavior preference, it would be surprising to have it ignored in some circumstances.

  4. John said on November 27, 2018 at 7:21 pm
    Reply

    You can open those windows in a tab by typing in “chrome://browser/content/places/places.xul” to adress bar. Some other adresses are available here: http://kb.mozillazine.org/Chrome_URLs

  5. ULBoom said on November 28, 2018 at 5:32 am
    Reply

    This is one of the few nag settings I leave on. It’s easy to close a browser accidentally, losing all your tabs. Session restore isn’t too useful to me, so the two settings should be independent.

  6. supergirl said on November 29, 2018 at 1:14 pm
    Reply

    the 2 most important browser features,to me, are multiple windows/tabs & session restore….

    the 2 most important extensions are NoScript & uBlock <— thank all you guys for this one!

    The most important feature that gets screwed with is No Right Click!!!!

    I use startpage & when I try to look at page 2 results …..

    I TRY to open it in a new tab..but NNNNOOOOooooooo you cant do that..wtf?
    WHY WHY WHY…?!?!?!!?!?

    too many times I have closed out a tab competely & lost some thing I have a devil of a time reclaiming..
    When Im sure Ive seen all that I want to see I will close out all the tabs & move on.
    There are times when this was 3-4 days later with
    12 hour sessions each day..

    We've all done it…After a week on youtube you just have to finally shut it down & go take a shower…no?

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.