How to avoid closing the window in Chrome
Solution 1:
This is so far the most annoying bug in Chrome dated since 2008 with over 500 supporters. And it seems a simple option/dialogue to warn when multiple tabs are being closed after those years is still on its way (Bug: #147), so hopefully we'll see it within our lifetime, hopefully. However 7 year old bug is nothing in comparing with 15-year old same bug in Firefox (too easy to hit CTRL+Q instead of CTRL+W). I've find it especially annoying (couldn't find a better word without swearing), when closing one tab (Ctrl+W) and ending up in disaster with multiple windows closure (including different profiles) each with 100+ tabs open with important data (leftovers for later) and live form filled-in, etc. only because my finger moved few millimetres to the left (and I didn't look at the keyboard).
There was a workaround to install Window Close Protector extension before, but it doesn't work anymore.
To vote on this feature/bug, please follow: Warn when closing with multiple tabs open at Google Code.
Other solutions:
- Ubuntu: How can I disable Ctrl+Q for all applications (system wide)?
- OSX: How to disable CMD+q combination?
Solution 2:
You are correct that for Chrome this is the reason. I am personally on that side and if I close something, I expect it to close unless there is unsaved work which is what Chrome tries to do. When a download is in progress, you will get a dialog asking for confirmation. If you were just in the middle the article, then you don't really lose anything and the consensus at the time I was on the Chrome team was that you just had to restart the browser and that was fast enough not to be an issue at least in most cases.
Guess you could write an extension or maybe start a never ending download :)