Closed
Bug 952925
Opened 8 years ago
Closed 7 years ago
No quit warning or multiple tab quit warning in Private Browsing Mode, even with about:config options set True
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
VERIFIED
FIXED
Firefox 34
| Tracking | Status | |
|---|---|---|
| firefox34 | --- | verified |
People
(Reporter: mozilla, Assigned: poiru)
Details
Attachments
(2 files, 1 obsolete file)
|
4.29 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
|
5.04 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131205075310 Steps to reproduce: 1) Enable Private Browsing Mode (Preferences/Privacy/AlwaysUsePrivateBrowsingMode) 2) Enable "Warn me when closing multiple tabs" (Preferences/Tabs) 2) In about:config set the following as True: ---) browser.warnOnQuit ---) browser.showQuitWarning ---) browser.warnOnRestart ---) browser.tabs.warnOnClose ---) browser.tabs.warnOnCloseOtherTabs 3) Open multiple tabs. 4) Hit Command+Q (Quit Firefox) Actual results: Firefox closed without any warning at all. Expected results: Firefox should have provided at least one (or both) of the following warnings: 1) A warning that Firefox is closing, asking the user to confirm. OR... 2) A warning that multiple tabs are being closed, asking the user to confirm. Additional testing: Retested using same steps, but with Private Browsing Mode *disabled*. When quitting, Firefox asks user to confirm intention to quit, as expected. Upon re-enabling Private Browsing Mode, incorrect behavior returns. Thus, problem seems to occur only with Private Browsing Mode.
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 987821
(In reply to Josh Matthews [:jdm] from comment #2) > > *** This bug has been marked as a duplicate of bug 987821 *** This is not a duplicate. 987821 refers to temporary private windows. The bug I'm referring to is in reference to when the Enable Private Browsing mode is set in preferences.
Comment 4•7 years ago
|
||
My mistake. That is definitely a problem.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Problem persists in Firefox 28. Revising to 28 Branch.
Version: 26 Branch → 28 Branch
| Assignee | ||
Comment 8•7 years ago
|
||
Try push: https://tbpl.mozilla.org/?tree=Try&rev=c2655a4697d8 The wording of the new message is similar to: http://mxr.mozilla.org/mozilla-central/source/browser/locales/en-US/chrome/browser/tabbrowser.properties#29
Assignee: nobody → birunthan
Status: REOPENED → ASSIGNED
Attachment #8455123 -
Flags: review?(ehsan)
Flags: needinfo?(josh)
Comment 9•7 years ago
|
||
Comment on attachment 8455123 [details] [diff] [review] Show quit warning for private windows as well Review of attachment 8455123 [details] [diff] [review]: ----------------------------------------------------------------- The thing you want to differentiate on is permanent private browsing, aka PrivateBrowsingUtils.permanentPrivateBrowsing. Your patch makes the warning show on normal private windows too which is undesirable. ::: browser/components/nsBrowserGlue.js @@ +880,5 @@ > // we should show the window closing warning instead. warnAboutClosing > // tabs checks browser.tabs.warnOnClose and returns if it's ok to close > // the window. It doesn't actually close the window. > + aCancelQuit.data = > + !win.gBrowser.warnAboutClosingTabs(win.gBrowser.closingTabsEnum.ALL); This part is just clean-up, right? @@ +886,5 @@ > return; > } > > + let prompt = Services.prompt; > + let quitBundle = Services.strings.createBundle("chrome://browser/locale/quitDialog.properties"); I'd rather if you didn't change all of these var's into let's in this patch... In general it's best to keep cleanups and functional changes separate into different patches so that the reviewer can review the individual bits more easily. Same for the above clean-up. @@ -889,5 @@ > return; > } > > - // Never show a prompt inside private browsing mode > - if (allWindowsPrivate) I think the only fix necessary here is to check PrivateBrowsingUtils.permanentPrivateBrowsing as appropriate here. ::: browser/locales/en-US/chrome/browser/quitDialog.properties @@ +9,5 @@ > saveTitle=&Save and Quit > neverAsk2=&Do not ask next time > message=Do you want %S to save your tabs and windows for the next time it starts? > messageNoWindows=Do you want %S to save your tabs for the next time it starts? > +messageQuit=You are about to quit %S. Are you sure you want to continue? I don't think we want a new message here, why can't we use the existing ones?
Attachment #8455123 -
Flags: review?(ehsan) → review-
| Assignee | ||
Comment 10•7 years ago
|
||
(In reply to :Ehsan Akhgari (lagging on bugmail, needinfo? me!) from comment #9) > Comment on attachment 8455123 [details] [diff] [review] > Show quit warning for private windows as well > > Review of attachment 8455123 [details] [diff] [review]: > ----------------------------------------------------------------- > > The thing you want to differentiate on is permanent private browsing, aka > PrivateBrowsingUtils.permanentPrivateBrowsing. Your patch makes the warning > show on normal private windows too which is undesirable. Ah, thanks for the clarification. > ::: browser/locales/en-US/chrome/browser/quitDialog.properties > @@ +9,5 @@ > > saveTitle=&Save and Quit > > neverAsk2=&Do not ask next time > > message=Do you want %S to save your tabs and windows for the next time it starts? > > messageNoWindows=Do you want %S to save your tabs for the next time it starts? > > +messageQuit=You are about to quit %S. Are you sure you want to continue? > > I don't think we want a new message here, why can't we use the existing ones? I believe the existing messages are: - 'You are about to close N tabs. Are you sure you want to continue?', which is misleading if there are multiple windows open. - 'Do you want Firefox to save your tabs (and windows) for the next time it starts?' (with 'Quit', 'Cancel', and 'Save & Quit' buttons), which is misleading since we don't save anything in private browsing. Do you know of another existing, more appropriate message?
Comment 11•7 years ago
|
||
(In reply to Birunthan Mohanathas [:poiru] from comment #10) > > ::: browser/locales/en-US/chrome/browser/quitDialog.properties > > @@ +9,5 @@ > > > saveTitle=&Save and Quit > > > neverAsk2=&Do not ask next time > > > message=Do you want %S to save your tabs and windows for the next time it starts? > > > messageNoWindows=Do you want %S to save your tabs for the next time it starts? > > > +messageQuit=You are about to quit %S. Are you sure you want to continue? > > > > I don't think we want a new message here, why can't we use the existing ones? > > I believe the existing messages are: > - 'You are about to close N tabs. Are you sure you want to continue?', which > is misleading if there are multiple windows open. > - 'Do you want Firefox to save your tabs (and windows) for the next time it > starts?' (with 'Quit', 'Cancel', and 'Save & Quit' buttons), which is > misleading since we don't save anything in private browsing. > > Do you know of another existing, more appropriate message? Hmm, yeah you're right. Gavin, do you have any suggestions?
Flags: needinfo?(gavin.sharp)
Comment 12•7 years ago
|
||
Sounds like we need a new string, or UX input in general. Can you mail firefox-dev?
Flags: needinfo?(gavin.sharp)
Updated•7 years ago
|
Flags: needinfo?(ehsan)
Comment 15•7 years ago
|
||
(In reply to Birunthan Mohanathas [:poiru] from comment #14) > Should we go ahead with Eric's suggestion? Sure, nobody else has replied yet, so Eric's wins!
Flags: needinfo?(ehsan)
| Assignee | ||
Comment 16•7 years ago
|
||
Attachment #8455123 -
Attachment is obsolete: true
Attachment #8468211 -
Flags: review?(ehsan)
| Assignee | ||
Comment 17•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Attachment #8468212 -
Flags: review?(ehsan)
Updated•7 years ago
|
Attachment #8468211 -
Flags: review?(ehsan) → review+
Updated•7 years ago
|
Attachment #8468212 -
Flags: review?(ehsan) → review+
| Assignee | ||
Comment 18•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/293166bebf5a https://hg.mozilla.org/integration/mozilla-inbound/rev/dadb81f1db4f Try push: https://tbpl.mozilla.org/?tree=Try&rev=d5795053e886
https://hg.mozilla.org/mozilla-central/rev/293166bebf5a https://hg.mozilla.org/mozilla-central/rev/dadb81f1db4f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
QA Whiteboard: [qa+]
Comment 20•7 years ago
|
||
Reproduced the initial issue on old Nightly (2014-08-07), verified that using latest Nightly on Mac OS X 10.9.4 the issue does not reproduce, after hitting cmd+q a pop-ul appears that alerts the user to Quit Firefox or cancel.
Updated•7 years ago
|
QA Whiteboard: [qa!]
You need to log in
before you can comment on or make changes to this bug.
Description
•