MozillaZine


warnOnClose set true, but doesn't in one case

Discussion of bugs in Mozilla Firefox
bbear
 
Posts: 45
Joined: October 10th, 2004, 10:24 am

Post Posted July 8th, 2020, 9:49 am

FF version 68.10.0esr
browser.tabs.warnOnClose = true
browser.tabs.warnOnCloseOtherTabs = true

If more than one tab is open, and I "X" off the window, then I get (as expected) the "Close tabs?" dialogue box as "You are about to close 3 tabs. Are you sure you want to continue?" --- All good so far.

Now, open a FF with multiple tabs then
Right click and "select all tabs" then
"X" off ANY individual tab - and the whole FF window and all the open tabs close immediately. No dialogue box, no second chance. No way I see to undo this. :(

morat
 
Posts: 4197
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 8th, 2020, 4:13 pm

It works here with Firefox 78.0.1. Maybe a bug that was fixed?

browser.tabs.warnOnClose = true
browser.tabs.warnOnCloseOtherTabs = true

To restore tabs...

* Launch Firefox
* History > Restore Previous Session

bbear
 
Posts: 45
Joined: October 10th, 2004, 10:24 am

Post Posted July 8th, 2020, 5:15 pm

morat - thanks for confirming that it's not like that in 78.

And for the reminder about History. Unfortunately I have the checkbox checked that says "clear history when Firefox closes". And that's maybe why I don't see an option to "Restore Previous Session", even though I still haven't closed Firefox since the incident.

morat
 
Posts: 4197
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 8th, 2020, 8:45 pm

You can turn off the select multiple tabs feature with the browser.tabs.multiselect pref in Firefox 68.

The pref was removed in Firefox 77.

therube

User avatar
 
Posts: 20582
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted July 15th, 2020, 1:32 pm

Somewhere along the line, I believe Mozilla changed "warnings" to only warn when the number tabs/windows are > the number of tabs/windows that can be "undone" (i.e. Recently Closed Tabs/Windows).

So if you have 3 tabs in a window & close the window, no warning, because you can restore the window & its tabs.

If you had 20 tabs in a window, then you would get a warning.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

Return to Firefox Bugs


Who is online

Users browsing this forum: No registered users and 1 guest