Under Tools > Options > Tabs, "Warn me when closing multiple tabs" is selected. Also, in about:config, browser.tabs.warnOnClose is set to "true". I always have multiple tabs open. However, sometimes my hand slips or the mouse falls off the table and Firefox closes without any warning.
Solved! Go to Solution.
The original problem was getting Firefox not to close when the X was accidentally clicked. The Fast Close Tabs addon is a work-around, but it's pretty much solved the problem: https://addons.mozilla.org/en-US/firefox/addon/fas
This addon changes the function of the X to close a single tab rather than the entire window. Mind you, it would still be nice if core Firefox actually did what the options said it did, or at least if the options were reworded to reflect what they actually do. But the Fast Close Tabs addon is a good enough alternative.
You can try to keep another window open like the Bookmarks Manager (Library) or Download Manager.
In Firefox 3 you do not get the 'Save & Quit' pop-up dialog if you choose Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time".
However session restore works more reliable if that setting (Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time") is selected.
The problem is that I always have 20+ tabs open, and quite frequently have 50+ tabs open when I'm working. When Firefox closes, I first must wait for it to close completely after the window is gone (or I get the message saying that Firefox is already running), then load it again and wait for all my tabs to reload, which can take some time and is annoying.
I have selected "Show my windows and tabs from last time" since I've already seen that system restore is not entirely reliable without it.
Is there a way to ask confirmation when closing, so that Firefox does not close accidentally, yet still reliably restore my open tabs after I have purposefully closed and reopened Firefox?
Which keys do you press by accident to close Firefox? It is possible to disable shortcut keys (except Alt+F3) that close Firefox with an extension like Keyconfig.
On Linux there is Ctrl+Q to close the browser. So if you want to press Ctrl+W to close a tab and instead press Ctrl+Q then you close the browser.
I'm running Windows 7 on a laptop with an external mouse (I strongly dislike trackpads). If the external mouse slides off my desk, or if I'm not careful while moving the laptop, the mouse pointer tends to slide to the upper right corner, where a small bump counts as a click and closes Firefox. I only rarely use keyboard shortcuts, so I don't think I've accidentally closed Firefox that way.
That close X will close the window. To prevent closing the browser you could open an extra window like I wrote above, but that will still require to restore that closed window. If it really only happens when you move the mouse to the top right then you can make the window slightly smaller just enough to prevent clicking that close button or you can work full screen without a title bar.
See also Autohide: http://www.krickelkrackel.de/autohide/
Yeah, the real problem is the time it takes to reload the tabs I have open. So keeping open another window doesn't do very much. I was really hoping for a way to get the "Warn me when closing multiple tabs" option to do what it says on the tin, but if that's not possible, I guess I'll just live with it.
'THIS WORKS !!!' I am a doctor.But here is my help:
Please got to this link & read my answer again: with inputs from helper 1677
helper 1677, b`cos I had done what he had said even before seeing his input:so, i do no know if my suggestion alone worked OR all did.but the problem is solved. On the Mozilla home page http://www.mozilla.org/ type this:about:config And enter despite a warning box"I`ll be careful,I promise":-) Just tick it & enter.
Change the column: "browser startup page" -userset integer- from 3 to 4 by double-clicking on that link & changing 3 to 4 !
This idea I got from this link below.
Reply if it works by signing in;as others will be helped !
THIS WORKS !!!
Sol 1) Go to options-->Tabs: check option "Warn me when closing multiple tabs" Sol 2) When we select option "Never remember history" or "Use custom setting for history" in Privacy tab then Firefox dont warn when closing multile tabs. If you want Firefox to pop up a box warning that you are closing multiple tabs and also not to remember history,password,etc. then do as suggested in below picture(Click to maximize it), it work definately. Thanks.
The problem with Rahul_D's response is that the original problem has nothing to do with browser history. The problem is that since Firefox 3 (so for the last 7 major versions now), the option "Warn me when closing multiple tabs" simply has not done what it claims to do. It's a fundamental programming error that we're supposed to believe is a feature because Mozilla's programmers are too incompetent to have an option actually do what it says it will do.
The problem with dr.ilangho's response is that browser.startup.page must be set to 3 in order to reload your tabs from the previous session when you start a new session. The original problem was that it was inconvenient to have to reload all my pages after closing. Changing the browser.startup.page value to anything but 3 means those pages won't reload at all, and any work on them is lost completely. That's hardly an improvement.