My favorites | Sign in
Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 1820: Feature request: Display confirmation dialog when closing Chrome with more than one active tab
55 people starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 147
Owner:  ----
Closed:  May 2009
Cc:  ben@chromium.org, anantha@chromium.org
Type-Feature
Pri-2
OS-All
Area-BrowserUI
Mstone-X


Sign in to add a comment
 
Reported by m.schlesinger84, Sep 08, 2008
Product Version      : <see 0.2.149.29 (1798)>
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 3:
Firefox 3:
IE 7:

What steps will reproduce the problem?
1. Open more than one tab
2. Close with ALT+F4
3.

What is the expected result?
- A question like "do you really want to close all tabs?".
- A question like "do you want to save the tabs?".

What happens instead?
- Browser just closes all tabs

Please provide any additional information below. Attach a screenshot if 
possible.


Comment 1 by mal.chromium, Sep 29, 2008
(No comment was entered for this change.)
Labels: -area-unknown Area-Misc
Comment 2 by aocampo@chromium.org, Oct 22, 2008
(No comment was entered for this change.)
Summary: Feature request: Display confirmation dialog when closing Chrome with more than one active tab
Status: Untriaged
Labels: -Area-Misc Area-BrowserUI
Comment 3 by jon@chromium.org, Oct 23, 2008
Probably a dupe.
Status: Available
Labels: Mstone-X
Comment 4 by chungf, Oct 30, 2008
This problem is exacerbated by the fact that Google Chrome uses a faux Aero theme 
even when Windows itself is using the Windows Classic theme (discussed in  issue 540 , 
sadly marked wontfix).

Under Windows Classic theme, if a user has multiple applications maximized, and he 
tries to minimize them in rapid succession, he would aim the mouse pointer at the 
"minimize" button and click multiple times, under the assumption that all maximized 
windows would have the "minimize" button in the same location. However, under Google 
Chrome's faux Aero theme, he would have clicked on the "close" button instead, thus 
closing Chrome immediately.

The attached file compares the horizontal positioning of the minimize / restore / 
close buttons of the Windows Classic theme, Google Chrome and Office 2007. Note that 
Office 2007 also uses customized decoration when run under Windows Classic, but its 
buttons are placed in the same horizontal position as the regular Windows Classic 
buttons.

If  issue 540  will not be fixed, then fixing this issue would mitigate the issue 
somewhat, assuming the user happens to have multiple Chrome tabs open.
WindowsClassic-Chrome-Office2007.png
7.0 KB Download
Comment 5 by finnur@chromium.org, Dec 24, 2008
 Issue 5843  has been merged into this issue.
Comment 6 by chr...@cybernium.net, Dec 29, 2008
There's got to be a way for disabling this! Otherwise it would be really really 
annoying for those who just expect the browser to close when we close it.
Comment 7 by sunandt@chromium.org, Dec 30, 2008
 Issue 5853  has been merged into this issue.
Comment 8 by kris.lipinski, Jan 06, 2009
Given that the user actually does want to close the browser, this feature could prove 
annoying.
Even with the dialog, the problem of accidentally closing the browser remains.  How 
many times have we mistakenly closed down an application with a confirmation dialog 
because we are familiar with the two click, or two key press combination?

Perhaps this could be resolved by allowing the last set of tabs to be restored.
And only present a dialog on tabs the cant be restored.
Comment 9 by loyukfai, Jan 06, 2009
I agree that it could be annoying, but can be work-arounded by adding a checkbox in the 
warning dialog - "Don't warn me anymore about this..."

BTW, if there's an ability to save and restore the "browsing status", it would be even 
better. But that seems to be out of scope for this issue...?

P.S. By "browsing status", I mean a particular window instance's status including all the 
tabs and each tab's own history (back and forward)... I think it's in Firefox is it...?

Comment 10 by umesh.gopinath, Jan 07, 2009
Restoring open tabs is an option available in the chrome. Its available already. Come 
to think of it, me closing the window accidentally is very rare. Checking the don't show this check box is making the warning dialog useless in the case of an accident. 
Checking the restore tab feature also doesn't help if i have closed the window 
purposely and not accidentally. I will be forced to close all tabs everytime. Is 
there a way for chrome to understand if i have closed accidentally? :-) I know its 
weird but just think about it... :-)
Comment 11 by loyukfai, Jan 07, 2009
Wait a minute. Isn't that the function of restoring recently closed tab(s) only available if 
the master Chrome process has not been killed...?

If the closed window is the only Chrome instance running, then that feature is not available 
when Chrome is re-launched.

-----

Next, if one clicked the check box, then of course he has to bear the consequence. But some 
of us prefer to get a warning instead.

-----

Check out Firefox's "Session Restore" feature here:

https://wiki.mozilla.org/Session_Restore

And not just for crash...

http://webtoolsandtips.com/firefox/restore-session-in-firefox/
https://addons.mozilla.org/en-US/firefox/addon/2324

For example, one is researching a topic on the Net and has opened a browser window with 
multiple tabs. At the end of the day when he leaves office, he saves the session, turns off 
the PC and goes home. The next day he comes back into office, he starts the browser again 
and loads the session.
Comment 12 by mberkow...@chromium.org, Jan 08, 2009
 Issue 6129  has been merged into this issue.
Comment 13 by mberkow...@chromium.org, Jan 08, 2009
(No comment was entered for this change.)
Labels: -Type-Bug Type-Feature
Comment 14 by loyukfai, Jan 10, 2009
According to the blog post on Jan-06 (http://blog.chromium.org/2009/01/tabbed-browsing-in-
google-chrome.html). It looks like this is being addressed...

"In recent trunk builds, you'll find that you can re-open a recently closed window from the 
New Tab Page, and that the "Recently Closed" section of the New Tab Page now spans multiple 
sessions. This is a good way to "undo" an accidentally closed window, in the same way you 
can "undo" an accidentally closed tab."

I haven't yet personally tried it but it sounds good. : ) 
Comment 15 by divilex@hotmail.com, Jan 10, 2009
This feature should be optional (not enabled by default though). Although this is a duplicate of  Issue 147  which is marked as "Wont Fix" by 
ben@chromium because - "As described, we are not going to implement this. Part of the design philosophy of Chromium was to eliminate modal popup 
dialog boxes that interrupt your workflow. While I agree preventing accidental window closing is useful, I think we can come up with a better way 
of doing it. When we figure out what we want to do, we'll file a new bug for it." If that is the case, because an extremely large number of people 
want it, it should be optional and off by default.

Comment 16 by uogpjf, Jan 14, 2009
Just getting the tabs back is NOT ENOUGH. What about content you may have typed into
the various tabs that are not currently on-screen, and sites you were "logged into",
when you absentmindedly clicked "Close"? You can't expect the browser to resolve all
of that upon startup. 

If one of those tabs contain an e-mail, or other posting that I have researched,
copied/pasted info into, and carefully phrased over a long time, you can be sure that
I'm upset if it's blown away!

So how does one close the browser by accident?
A) By meaning to close the current page, but forgetting the other tabs are there.
B) By tapping the wrong [X] when multiple windows are overlapped.

I'd be willing to bet just about everyone here has done one or the other, I do both.
Sadly, it seems I do the former far to often. Fortunately, the Zimbra webmail I use
has an automatic periodic checkpoint to "Drafts". 

I'd much rather Chrome had the option be there to warn me, and I don't mind if the
default state is "off". Those that get burned once, and want it, will go find it, and
turn it on (as I just tried to :-)

Yes, one can goon automatic and click both without thinking, but in may case, I find
Firefox's warning sufficient. 

Comment 17 by loyukfai, Jan 16, 2009
Forgot if it's Firefox or Chrome, but once when I had a tab restored (due to crash? 
can't remember), the content typed was also there.

As I've mentioned before, a more comprehensive "session management" including each 
tab's browsing history, and content typed, will be welcomed (but is out of scope of 
this issue).
Comment 18 by ballarad, Feb 05, 2009
This would be an incredibly useful feature.  I have to use Internet Explorer for 
quite a few secure web pages at work and when I'm switching between browsers I 
frequently accidentally exit out of my Chrome window rather than just the tab that 
I'm viewing.
Comment 19 by xnoreq, Feb 07, 2009
I think that a majority of people disable such kind of (annoying) question popups the 
first time they see them.
How do you manage to accidentally close Chrome? Either you don't look where you are 
clicking or you run into the  issue 2788  problem in which case there are no multiple 
open tab pages.
And there is an option to restore the tab pages, so this really should not be a 
problem (and reason to add an annoying "Do you really want to ..." question dialog).
Comment 20 by hirsch.will, Feb 07, 2009
By the way, I don't think recently closed windows were included on the new tab page 
when this bug was filed. As far as I'm concerned, this feature blows my support for 
this bug out of the water. If I made a boo-boo, all I have to do is reopen Chrome and 
restore the window. Definitely no call for enabling something like this by default 
any more.
Comment 21 by haridara, Feb 07, 2009
@xnoreq, on the contrary, when my firefox installation doesn't prompt me for this dialog, I notice it 
immediately and enable it. This is why you would need the feature, even if the default is not to prompt. 
At least, people like me can look for the option and enable it to see the dialog next time. Regarding why 
you might close such a window, see the comments on this blog:

http://www.techzoomin.com/google-chrome-closes-all-the-tabs-without-notification-exclusive-review-by-tzi

Here is another beautiful reason why you might close chrome window and fall into this situation, and it is 
not even accidental. It is often a practice to use the "X" button on the top-right corner to close 
applications, however it is a bad practice to do this (instead of using File->Exit or something similar) 
because, it doesn't make the application exit if that is not the last window. In case of something like MS 
Outlook, all that means is that you need further actions to make Outlook completely exit (e.g., close the 
rest of the windows the same way, or switch to File->Exit) and no harm is done. But consider the same with 
Chrome. Let us say you have two windows with multiple tabs in each. In order to make chrome exit, a user 
could click on the "X" button instead of using Settings->Exit. When the user realizes that chrome didn't 
exit, he/she will be in for a surprise. The problem is that if the user simply closes the second window 
also, the next time chrome is started it will reopen only that window. If the user is aware of this issue, 
he/she would want to first restore the window and before exiting properly, but since there is no current 
mechanism to do that, they will have to go through a number of clicks, essentially repeating the below 
steps a number of times after opening a new window:
- Open new tab
- Click on the first link in "Recently closed tabs"

The above is a good workaround as long chrome remembers all the tabs in the last closed window (which is 
not the case right now), but still is painful and is not obvious to most users.

@hirsch.will, there is a limit of how many closed tabs chrome remembers (I think it is 10) and I often 
have more tabs than that.
Comment 22 by phajdan...@chromium.org, Mar 03, 2009
 Issue 8303  has been merged into this issue.
Comment 23 by dejan1024, Mar 15, 2009
If I may comment the following: "Part of the design philosophy of Chromium was to eliminate modal popup dialog boxes that interrupt your 
workflow."

The warning doesn't have to be a modal dialog box. It could work similarly to the "find in page" function: When the user presses the X button, a 
warning (if turned on) could slide down below the buttons, saying "Are you sure that blah blah..." with additional yes/no buttons, or the user should just press the X button again (which is more convenient, but more likely to do by mistake).

I believe that kind of solution would be an effective warning, without need for dialog boxes. I also agree it should be optional.

On a side note: I usually exit Chrome by holding Ctrl+W, not by using Alt+F4.
Comment 24 by krtulmay, Mar 23, 2009
All the differences in *personal preference* would be solved if the popup confirmation provided 
(basically a Windows standard now) an additional checkbox to "Do not ask me again" (and of course re-
activatable through Options).

As also expressed from chromium-discuss by geopagan:
http://groups.google.com/group/chromium-discuss/browse_thread/thread/ab8023f667d12596/a6586a943b4829e7
"Disagreements over how things should act are *THE REASON THAT OPTIONS EXIST*!  There should be an 
option that selects the behavior of requesting verification when closing with multiple tabs open."
Comment 25 by geopagan, Mar 23, 2009
Why are we even discussing this?  It's obvious that there are a lot of people who
want to be asked for confirmation when closing a browser that has multiple tabs open,
and a lot of people that don't.  Neither side is going to convince the other side
that their way is "right".  That's why it should be an option.  I don't really care
which way the option defaults.  The people who want the behavior to be different will
search down the option.  Even better would be the "don't ask me again" checkbox
suggested above.
Comment 26 by xlyuan@chromium.org, Mar 30, 2009
 Issue 9436  has been merged into this issue.
Comment 27 by xlyuan@chromium.org, Mar 30, 2009
Actually, this is the same as an earlier bug  issue 147 .
Owner: ---
Cc: b...@chromium.org anan...@chromium.org
Comment 28 by krtulmay, Mar 30, 2009
Except that this bug is Status: Available for any dev to work on fixing this.
Comment 29 by mberkow...@chromium.org, Apr 22, 2009
 Issue 10847  has been merged into this issue.
Comment 30 by venkataramana@chromium.org, May 04, 2009
 Issue 11398  has been merged into this issue.
Comment 31 by divilex@hotmail.com, May 12, 2009
Hopefully someone can work on this feature for 2.1..more features are needed to 
attract and keep new users and to also keep current users.
Comment 32 by divilex@hotmail.com, May 30, 2009
Can anyone work on this for 3.0? 
Comment 33 by ben@chromium.org, May 30, 2009
This feature is superceded by the "recently closed" section on the NTP.
Also, no modal dialogs.
Status: WontFix
Comment 34 by divilex@hotmail.com, May 30, 2009
Ben@ - That does not work in Incognito mode though.
Comment 35 by dhhwai, May 30, 2009
"No modal dialogs" is totally *WRONG* in this case because we EXACTLY WANT a modal 
interruption before Chrome exits with more than one active tab!

Just make it a *configurable option* also with a "Never ask me again" checkbox and it 
will just work, work instantly, be immediately reconfigurable, and everyone can be 
happy because everyone will have an option that they like.

Why does Chromium not choose to provide what users desire instead of catering to 
developers misguided whims?
Comment 36 by geopagan, May 30, 2009
"Recently closed" does not provide the functionality that is asked for here.  All 
we're asking for is ANY way to make sure that we don't accidentally close down the 
browser when we don't mean to.  Make it an option whose default is off, that's fine, 
then those of you who don't want to be bothered won't be.  However, don't refuse to 
give us what we want because you you'd never use the feature.

Please reopen this request.


Comment 37 by haridara, May 30, 2009
I hope chromium development team doesn't turn out to be another pidgin like
development team, which is always hell bent on doing what their developers like
instead of what users really want.
Comment 38 by kerandjes, May 31, 2009
Very disappointed... Chrome developers need to think from a users point of view.
Comment 39 by xlyuan@chromium.org, Jun 30, 2009
 Issue 15678  has been merged into this issue.
Comment 40 by geopagan, Jun 30, 2009
How many times and how many people need to request this before you guys believe that 
maybe it really is a good idea to give people what they want!!!?

Comment 41 by svitalis, Jul 06, 2009
Please add an "Are you sure you want to close all tabs?" (confirmation) dialog box. 
I've close chrome accidentally quite a few times now.
Comment 42 by prog...@chromium.org, Jul 12, 2009
 Issue 16369  has been merged into this issue.
Comment 43 by gconklin, Jul 14, 2009
I also vote for this and regarding the statement "eliminate modal popup 
dialog boxes that interrupt your workflow".

I can think of a number modal dialogs that currently exist:
1. Printing
2. Save link as...
3. Download / save file
4. About Google Chrome
5. Edit bookmark (not bookmark manager)
6. Clear Browsing Data
7. Import bookmarks and settings

While these may not "interrupt workflow," completely closing Chrome by accident
because there's no warning totally interrupts workflow.
Maybe somebody can create a plugin or addon to intercept the close request and spawn
the dialog to abort...?
Comment 44 by Klaus.Weidner, Jul 15, 2009
Please reconsider the "wontfix" decision and provide an option to enable a warning 
(or a way to turn the Ctrl-Q keybinding off entirely). I've accidentally shut down 
Chrome several times, since Ctrl-W is one of the most frequently used key commands, 
and it's right next to Ctrl-Q. That's much more of an interruption of my work flow 
than a dialog would be (especially since I pretty much never close the browser 
intentionally).

No, having an option to reload windows on startup is not a replacement. Especially 
with today's complex web apps, users often have a lot of state in the windows that 
won't get properly restored, for example web pages needing authentication, active 
chats in gmail, or cases where there is corresponding server-side state.

As a workaround, see pcxunlimited's userscript in 
http://code.google.com/p/chromium/issues/detail?id=14716#3, but needing to do that 
isn't particularily end user friendly.
Comment 45 by GraemeErickson, Aug 06, 2009
I know this is closed, but what about this idea: when you click the X, a small box pops 
up out of the X button that asks something along the lines of, "Are you sure?". It's 
hard to describe, but I guess a decent example would be when you click the Labels 
button in GMail and the small options box pops up. This is not intrusive, it's quick, 
and it's clean.
Comment 46 by GraemeErickson, Aug 06, 2009
So I guess the X button would turn into a drop-down button whenever more than one tab 
is open.
Comment 47 by Klaus.Weidner, Aug 20, 2009
Closing all windows and tabs without prompting is not just a user preference, it's a 
data loss issue, especially if the action is easy to cause by accident.

If you can guarantee that restarting the browser will always completely restore 
state, I'd be happy with not getting prompted. But please consider the following 
situations:

- there may be server-side state such as open AJAX server connections, authenticated 
HTTPS sessions, open gmail chats, or other things that cannot be restored on a 
restart.

- a web application running locally may have complex state stored in memory. If an 
app would normally be allowed to present a "are you sure you want to navigate away 
from this page" prompt, it should also be protected from being closed 
unintentionally.

- reloading the data from the server may not be possible. For example, you may be on 
a different network now than when the pages were loaded (or not have a data 
connection at all), or the information may not exist anymore if it was part of a 
session.

- if surfing in incognito mode, storing the current state on disk would be 
counterproductive.

I can understand the goal of not bloating the UI with unnecessary prompts, but 
avoiding data loss is a more important goal. If the browser can keep track of what it 
can restore and what it cannot (possibly with support from web apps), including 
storing the currently viewed content on disk where appropriate, it should be possible 
to allow seamless quit/resume with no data loss (and no prompt) for many common 
cases, and prompt only if the browser recognizes the risk of data loss if quitting. 
But I think that just making the behavior configurable would be easier :)
Comment 48 by fahimcassam, Aug 22, 2009
I have to agree completely with Klaus. And specially in the end "making the behavior 
configurable would be easier :)"
Comment 49 by venkataramana@chromium.org, Oct 19, 2009
 Issue 25187  has been merged into this issue.
Comment 50 by GraemeErickson, Dec 01, 2009
 Issue 27077  is a duplicate.
Comment 51 by est...@chromium.org, Dec 04 (6 days ago)
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 147
Sign in to add a comment