Updated link describing the behaviour from Comment 10:

https://hg.mozilla.org/mozilla-
central/file/934fe0bd6062/browser/components/nsBrowserGlue.js#l1248

Also pasting it here for easier search:

> There are several cases where we won't show a dialog here:
> 1. There is only 1 tab open in 1 window
> 2. The session will be restored at startup, indicated by
>    browser.startup.page == 3 or browser.sessionstore.resume_session_once == 
> true
> 3. browser.warnOnQuit == false
> 4. The browser is currently in Private Browsing mode
> 5. The browser will be restarted.
> 
> Otherwise these are the conditions and the associated dialogs that will be 
> shown:
> 1. aQuitType == "lastwindow" or "quit" and browser.showQuitWarning == true
>    - The quit dialog will be shown
> 2. aQuitType == "lastwindow" && browser.tabs.warnOnClose == true
>    - The "closing multiple tabs" dialog will be shown
> 
> aQuitType == "lastwindow" is overloaded. "lastwindow" is used to indicate
> "the last window is closing but we're not quitting (a non-browser window is 
> open)"
> and also "we're quitting by closing the last window".

----

Cases 2 and 4 are the most annoying.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/583797

Title:
  "Warn on closing with multiple tabs open" not honored

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/583797/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to