Chrome always quit when I click on the X
button on a tab, without asking me anything!
Even when I close Chrome he do not alert me if I am willing to relay close it?
Many times it happened that accidentally I clicked on X
button.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityChrome always quit when I click on the X
button on a tab, without asking me anything!
Even when I close Chrome he do not alert me if I am willing to relay close it?
Many times it happened that accidentally I clicked on X
button.
If you accidently close all your tabs you can reload Chrome and press CTRL + SHIFT + T.
This will restore your previous session for all your tabs.
You could also look for a Chrome extension such as Windows Close Protector.
CTRL + SHIFT + T
. But what happen if I have written text in some page? The text is not restored.
Preferences
file in your user-data directory to set exited-cleanly
to false
, then start Chrome, and it will ask if you want to restore your session, in which case it will use the Current Tabs
file to restore your tabs and the Last Session
file to restore the text and other form-field settings. Yes, it’s a kludge, but it works in those (hopefully) rare instances.
Just to update this answer, Chrome now has a menu option for this. You can require a long press of CMD-Q so that any accidental press won't exit chrome.
On Mac click on the Chrome menu and check: "Warn Before Quitting"
If you don't mind installing a Chrome extension...
The Chrome Toolbox extension, written by Google, has an option called "Confirm before closing multiple tabs." You can find it here:
https://chrome.google.com/webstore/detail/fjccknnhdnkbanjilpjddjhmkghmachn
It has a number of other interesting options also.
You can also "restore the last session," which will include text in text boxes, if you closed the program accidentally.
--restore-last-session
So now you have an easy way to get back all the tabs.
Note: It won't restore incognito windows.