I have a habit of hitting windows+E to open explorer, and sometimes I accidentally hit Ctrl+Q which closes the browser.
Now, a lot of responses I've seen to this kind of question (warn before closing multiple tabs, etc.) are things like "why don't you just re-open the browser?"
Which is ok if I were just reading an article, but what if I were in the middle of uploading a file, or streaming a video, or I need to re-authenticate? Especially if you're doing some online shopping with a huge queue behind you and if you accidentally kicked yourself off you'll have to wait another 4 hours to get back in again.
I've read a couple responses from chrome developers saying that the decision was made to avoid "annoying users with unnecessary questions that would take away from their browsing experience" or something, but that's pretty questionable.
I'm also not too fond of using extensions since the permissions that are granted are quite scary (access to ALL surfing, all data on all websites, browsing history, etc).
Is there a solution other than installing an extension? I could write my own extension if necessary (or if there's an open-source extension that I could look at before installing).