Closed
Bug 854926
Opened 13 years ago
Closed 13 years ago
Firefox prompts a warning when closing private windows with multiple tabs open
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
VERIFIED
FIXED
Firefox 23
People
(Reporter: ioana_damy, Assigned: jdm)
References
Details
(Keywords: regression, verifyme)
Attachments
(1 file, 2 obsolete files)
|
1.20 KB,
patch
|
Gavin
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This issue is reproducible on Firefox 20 beta 7 (20130325214615), as well as on the 03/26 Aurora and Nightly. It most probably landed with the Per-Window PB (it reproduces back to a 04/12/2012 build).
STR:
1. Open a private window.
2. Open multiple tabs in that private window.
3. Close the private window.
Expected Results:
No warnings are displayed.
Actual Results:
The warning about closing multiple tabs is displayed.
| Assignee | ||
Comment 1•13 years ago
|
||
I can't reproduce this in nightlies after bug 844561 landed.
| Assignee | ||
Comment 2•13 years ago
|
||
Specifically, I'm on Linux. Can you give some platform details?
| Reporter | ||
Comment 3•13 years ago
|
||
(In reply to Josh Matthews [:jdm] from comment #2)
> Specifically, I'm on Linux. Can you give some platform details?
I'm reproducing this issue on Windows 7 32bit and 64 bit, and on Ubuntu 12.10 32bit.
No reproducible on Mac OSX 10.7.5.
Comment 4•13 years ago
|
||
This does not happen on Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0
But on Mozilla/5.0 (Windows NT 6.2; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 buildid 20130325214615 it is not fixed.
Updated•13 years ago
|
status-firefox20:
--- → affected
status-firefox21:
--- → unaffected
status-firefox22:
--- → unaffected
| Reporter | ||
Comment 5•13 years ago
|
||
I just reproduced this on every try on:
Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20130331 Firefox/21.0
Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20130331 Firefox/22.0
Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130331 Firefox/21.0
Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130331 Firefox/22.0
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20130331 Firefox/22.0
| Reporter | ||
Updated•13 years ago
|
tracking-firefox21:
--- → ?
tracking-firefox22:
--- → ?
Comment 6•13 years ago
|
||
Can you please start with a clean profile and give us an exact set of steps to reproduce, including the URLs that you open in the private tabs? Thanks!
| Reporter | ||
Comment 7•13 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #6)
> Can you please start with a clean profile and give us an exact set of steps
> to reproduce, including the URLs that you open in the private tabs? Thanks!
I mostly reproduced this on clean profiles, and I only do the exact steps in comment 0:
1. Open a private window (Ctrl+Shift+P or file->New Private Window - worked with both)
2. Open multiple tabs in that private window (Ctrl+T or click the [+] button on the tabs bar - there's no need to load URLs in the tabs).
3. Close the private window (Click the [x] button).
Comment 8•13 years ago
|
||
At the moment, it's not clear that this should track until users report it as a major nuisance. Once fixed, we can consider a low risk uplift nomination.
Comment 9•13 years ago
|
||
(In reply to Ioana Budnar [QA] from comment #5)
> I just reproduced this on every try on:
> Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20130331 Firefox/21.0
> Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20130331 Firefox/22.0
>
> Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130331 Firefox/21.0
> Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130331 Firefox/22.0
>
> Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0
> Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20130331 Firefox/22.0
I can't reproduce on todays aurora build. I maintain comment #4.
(In reply to Alex Keybl [:akeybl] from comment #8)
> At the moment, it's not clear that this should track until users report it
> as a major nuisance. Once fixed, we can consider a low risk uplift
> nomination.
This is the second time this regression occurs. People just won't come chiming in claiming that they got caught doing whatever they where doing while trying to close a private browsing window. This should track. I don't understand how this regressed again while it was in the testsuite?
Keywords: regression
Comment 11•13 years ago
|
||
Is a different behaviour expected in private mode ?
In normal mode, Firefox prompts the user when closing a window having several tabs. So, in private mode, Firefox has to prompt the user too. For the sake of consistency. The user is used to have this last chance. If Firefox closes the window at once *in private mode*, it - mostly badly - surprises the user. And predictability is the best friend of usability.
Comment 12•13 years ago
|
||
(In reply to comment #11)
> Is a different behaviour expected in private mode ?
>
> In normal mode, Firefox prompts the user when closing a window having several
> tabs. So, in private mode, Firefox has to prompt the user too. For the sake of
> consistency. The user is used to have this last chance. If Firefox closes the
> window at once *in private mode*, it - mostly badly - surprises the user. And
> predictability is the best friend of usability.
You don't want Firefox to pop up dialogs when you're trying to close your private window quickly when someone is passing by...
| Assignee | ||
Comment 13•13 years ago
|
||
Ugh, I can now reproduce this on beta.
Assignee: nobody → josh
Flags: needinfo?(josh)
| Assignee | ||
Comment 14•13 years ago
|
||
No wonder it was intermittent to reproduce. browser-lastwindow-close-requested in nsBrowserGlue only pops up a confirmation box if warnOnQuit is true or your session will not be automatically restored. It looks safe to skip that notification if we're closing a private window.
Attachment #732553 -
Flags: review?(gavin.sharp)
Comment 15•13 years ago
|
||
Comment on attachment 732553 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
Whether browser-lastwindow-close-requested/granted is fired or not shouldn't depend on the window's private browsing state. Seems like you should instead fix the browser-lastwindow-close-requested observer (i.e. nsBrowserGlue's _onQuitRequest when aQuitType=="lastwindow") to not prompt in this situation.
Attachment #732553 -
Flags: review?(gavin.sharp) → review-
Comment 16•13 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo? me!) from comment #12)
> You don't want Firefox to pop up dialogs when you're trying to close your
> private window quickly when someone is passing by...
Yes, I want this dialog. I expect it, because in normal mode it comes. So if I want to close a window quickly I will quickly click the "OK" button of this dialog.
Anyway, a private window is not supposed to be invisible - it is not invisible -, it is supposed not to leave traces after it neither outside of it.
Anyway, if I have a private window to hide quickly when someone is passing by, I will not close it quickly, I will hide (minimize) it quickly.
This issue is a data loss issue. The person using Firefox is used to have this last chance dialog, so s/he will expect it, and... not have it. This would be bad.
| Assignee | ||
Comment 17•13 years ago
|
||
Attachment #732904 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•13 years ago
|
Attachment #732553 -
Attachment is obsolete: true
Comment 18•13 years ago
|
||
Comment on attachment 732904 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
This looks fine for implementing the desired behavior, but given that this is marked as a regression (from per-window PB?), I wonder how this quit dialog used to be suppressed before.
(As an aside, I'm also not entirely sure I like this design choice - I've personally been annoyed by accidentally closing private windows before and losing my tabs without warning, and it's not clear to me that the "going to get caught need to close window quickly" use case is actually common enough to be worth the dataloss risk.)
| Assignee | ||
Comment 19•13 years ago
|
||
The prompt was suppressed before by this code: http://hg.mozilla.org/mozilla-central/annotate/e53044984f1b/browser/components/nsBrowserGlue.js#l704
Comment 20•13 years ago
|
||
That code's still there, though. What was stopping the warnAboutClosingTabs call in the lastwindow case (which is what this patch is fixing, AIUI)?
| Assignee | ||
Comment 21•13 years ago
|
||
I don't understand the question. Before per-window PB, there was a check of the global PB mode value and an early return. After per-window PB, it turned into a check to see whether all of the open windows were private instead, so we no longer early-returned.
| Assignee | ||
Comment 22•13 years ago
|
||
The warnAboutClosingTabs call isn't the problem; the remainder of _onQuitRequest pops up a dialog asking if you really want to continue.
Comment 23•13 years ago
|
||
I don't understand. If aQuitType == "lastwindow" (which seems to be the problematic case given your last patch), and that window is a private browsing window, allWindowsPrivate should be true, and we should continue to return early.
| Assignee | ||
Comment 24•13 years ago
|
||
allWindowsPrivate is determined by enumerating all open browser windows. In the case where you have a public window in addition to the private one, it is false.
Comment 25•13 years ago
|
||
In that case, we wouldn't be hitting the "lastwindow" case. Unless you're referring to a non-browser, non-private window? Or did your previous patch just not fix the issue?
| Assignee | ||
Comment 26•13 years ago
|
||
Hooray for synchronous communication.
Attachment #733038 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•13 years ago
|
Attachment #732904 -
Attachment is obsolete: true
Attachment #732904 -
Flags: review?(gavin.sharp)
Comment 27•13 years ago
|
||
Comment on attachment 733038 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
isPBWindow ? true : gBrowser.warnAboutClosingTabs(true) is equivalent to isPBWindow || gBrowser.warnAboutClosingTabs(true).
Comment 28•13 years ago
|
||
Comment on attachment 733038 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
r=me with dao's tweak
Attachment #733038 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 30•13 years ago
|
||
Comment 31•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
| Assignee | ||
Comment 32•13 years ago
|
||
Comment on attachment 733038 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): pb-per-window
User impact if declined: Inconsistent prompting behaviour when closing private windows, based on user profile preferences.
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): Risk-free.
String or IDL/UUID changes made by this patch: None.
Attachment #733038 -
Flags: approval-mozilla-beta?
Attachment #733038 -
Flags: approval-mozilla-aurora?
Comment 33•13 years ago
|
||
Comment on attachment 733038 [details] [diff] [review]
Never request confirmation to close the last private browsing window.
Low risk, avoids a unexpected warning prompt when user is trying to close a private window.
Requesting QA verification on beta/aurora once this lands.
Attachment #733038 -
Flags: approval-mozilla-beta?
Attachment #733038 -
Flags: approval-mozilla-beta+
Attachment #733038 -
Flags: approval-mozilla-aurora?
Attachment #733038 -
Flags: approval-mozilla-aurora+
Updated•13 years ago
|
Comment 34•13 years ago
|
||
Comment 35•13 years ago
|
||
Verified on aurora.
Comment 36•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
Verified as fixed on Firefox 21(Build ID:20130408165307).
Comment 37•12 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0
Also verified on Linux and Mac.
| Reporter | ||
Comment 40•12 years ago
|
||
Verified as fixed on Windows 7 64bit, Ubuntu 12.10 32bit and Mac OSX 10.7.5 with Firefox 21 beta 3 - 20130416200523.
Keywords: qawanted
Comment 42•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:23.0) Gecko/20130428 Firefox/23.0
Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20130428 Firefox/23.0
Verified as fixed on Windows 7 x64 and Ubuntu 12.04 x86_64 with latest Nightly 23.0a1 (Build ID: 20130429030926)
Comment 43•12 years ago
|
||
In addition to comment 42, verified on Mac OS 10.8 - latest Nightly using steps from comment 0.
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 45•12 years ago
|
||
Verified as fixed on Firefox 22 beta 1: 20130514181517.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0
Comment 46•11 years ago
|
||
Interesting to discover the issue of data loss for one group of users is overridden if another group fears getting caught on dodgy sites by their bosses! (Presumably no one's told them their admin will pick up on that stuff regardless and Private Browsing's giving them a false sense of security.)
I have added Bug 1097149 for a separate, off-by-default warning that a user will be able to enable to help protect their Private Browsing session. I would encourage those above unhappy with the current state to support it to increase the chances of it actually happening.
Comment 47•11 years ago
|
||
(In reply to Ben from comment #46)
> Interesting to discover the issue of data loss for one group of users is
> overridden if another group fears getting caught on dodgy sites by their
> bosses! (Presumably no one's told them their admin will pick up on that
> stuff regardless and Private Browsing's giving them a false sense of
> security.)
I agree with Ben. Data loss is more important than hide-and-seek. In addition, I expect the dialog, for these 2 reasons :
1) Consistency. In normal mode, Firefox asks the question. So I am used to having the question. Not having the question in private mode would be inconsistent, so would surprise me.
2) Doing what we say. Firefox has a check box saying "Warn me when I attempt to close multiple tabs". As long as this check box remains ticked, Firefox says that he will warn me. That's why I expect to be warned.
Updated•7 years ago
|
Flags: in-qa-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•