Closed
Bug 409686
Opened 17 years ago
Closed 12 years ago
remove off-by-default restart prompt code
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 20
People
(Reporter: flod, Assigned: jaws)
References
Details
(Keywords: polish, Whiteboard: [see comment 29 for updated STR])
Attachments
(1 file, 6 obsolete files)
9.62 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
The string with key NeverAsk (quitDialog.properties) is "Do not ask next time". This checkbox is used in combination with (at least) two other strings: * "messageNoWindows" when you try to close a window * "messageRestart" when you press the button Restart in the Add-ons Manager (see https://bugzilla.mozilla.org/show_bug.cgi?id=385425 ) While the first message is a question ("Do you want %S to save your tabs and windows for the next time it starts?"), the second message is a statement ("%S will try to restore your tabs and windows when it restarts. "), so "ask" doesn't fit. We should have a second string to use with a statement like messageRestart.
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Updated•17 years ago
|
Component: Extension/Theme Manager → Session Restore
QA Contact: extension.manager → session.restore
Updated•17 years ago
|
Comment 1•17 years ago
|
||
Simple patch to add the neverPrompt string for the case where messageRestart is used.
Attachment #294756 -
Flags: review?(mano)
Comment 2•17 years ago
|
||
Comment on attachment 294756 [details] [diff] [review] Patch (v1) please ask beltzner for ui-r first.
Attachment #294756 -
Flags: review?(mano)
Updated•17 years ago
|
Attachment #294756 -
Flags: ui-review?(beltzner)
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 3•17 years ago
|
||
String changes to land before the l10n freeze...
Attachment #298779 -
Flags: ui-review?(beltzner)
Attachment #298779 -
Flags: review?(beltzner)
Comment 4•17 years ago
|
||
This is a discrepancy in the UI which should be fixed, I guess. Beltzner: can you do a review on the string changes (attachment 298779 [details] [diff] [review]) so that this has a change to land in Firefox 3? Thanks!
Flags: blocking-firefox3?
Comment 5•17 years ago
|
||
Do these checkboxes flip the same or different prefs? I totally can't remember.
Comment 6•17 years ago
|
||
(In reply to comment #5) > Do these checkboxes flip the same or different prefs? I totally can't remember. Yeah: browser.warnOnQuit: <http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/browser/components/nsBrowserGlue.js&rev=1.49&mark=301-304#296>
Comment 7•17 years ago
|
||
Comment on attachment 294756 [details] [diff] [review] Patch (v1) I think a better solution is to just remove the checkbox from the restart dialog entirely. I'm not comfortable, really, with having a box which you can check when you restart also end up affecting the question about saving on quit, which will be more frequently seen. Especially when there's nowhere to flip that pref back.
Attachment #294756 -
Flags: ui-review?(beltzner) → ui-review-
Updated•17 years ago
|
Attachment #298779 -
Flags: ui-review?(beltzner)
Attachment #298779 -
Flags: ui-review-
Attachment #298779 -
Flags: review?(beltzner)
Attachment #298779 -
Flags: review-
Comment 8•17 years ago
|
||
(In reply to comment #7) > (From update of attachment 294756 [details] [diff] [review]) > I think a better solution is to just remove the checkbox from the restart > dialog entirely. > > I'm not comfortable, really, with having a box which you can check when you > restart also end up affecting the question about saving on quit, which will be > more frequently seen. Especially when there's nowhere to flip that pref back. You're right. I'm morphing the bug accordingly. Since this won't need a string change, I'll post a patch after the l10n freeze.
Summary: the quit prompt displays a statement but the checkbox label refers to a question → Remove the "Do not ask next time" checkbox from the quit prompt when restarting
Updated•17 years ago
|
Target Milestone: Firefox 3 beta3 → Firefox 3 beta4
Comment 9•17 years ago
|
||
Beltzner: Now that I think of it, wouldn't we want a similar browser.warnOnRestart pref which is effective for restarts? I think just hiding that checkbox on restart confirmation dialogs might be a mistake, because users may be annoyed by being prompted before restarting every time, so there should be a way to disable it. What do you think?
Comment 10•17 years ago
|
||
This does not block the final release of Firefox 3.
Flags: blocking-firefox3? → blocking-firefox3-
Comment 11•17 years ago
|
||
Implementing Beltzner's suggestion in comment 7. I was not sure if it's OK to implement my suggestion in comment 9 at this point in the release cycle, so I ignored it for now. This patch only removes the check box from the restart dialog. This should be quick to review.
Attachment #294756 -
Attachment is obsolete: true
Attachment #298779 -
Attachment is obsolete: true
Attachment #302083 -
Flags: review?(mano)
Comment 13•17 years ago
|
||
If we're removing the option to not show this message the next time, then do we need this prompt at all? When installing an update, we already have a Restart Now/Don't Restart step. Without the checkbox, this second prompt seems redundant.
Comment 14•17 years ago
|
||
Comment on attachment 302083 [details] [diff] [review] Patch (v2) r=mano code-wise, need ui-r though, see previous comment.
Attachment #302083 -
Flags: review?(mano) → review+
Comment 15•16 years ago
|
||
The Quit prompt isn't displayed by Session Restore but rather by nsBrowserGlue. Those bugs seem to live in Firefox:General for lack of a better fit.
Assignee: ehsan.akhgari → nobody
Status: ASSIGNED → NEW
Component: Session Restore → General
QA Contact: session.restore → general
Updated•16 years ago
|
Assignee: nobody → ehsan.akhgari
Whiteboard: [has patch] [needs review Mano] → [has patch]
Target Milestone: Firefox 3 beta4 → ---
Updated•16 years ago
|
Attachment #302083 -
Flags: ui-review?(beltzner)
Updated•16 years ago
|
Whiteboard: [has patch] → [has patch][needs ui-review beltzner]
Updated•15 years ago
|
Flags: wanted-firefox3.6?
Updated•15 years ago
|
Flags: wanted-firefox3.6?
Comment 16•15 years ago
|
||
Updating to reality: I won't have the time to work on this for the foreseeable future!
Assignee: ehsan.akhgari → nobody
Updated•14 years ago
|
Whiteboard: [has patch][needs ui-review beltzner] → [has patch]
Updated•14 years ago
|
Attachment #302083 -
Flags: ui-review?(beltzner) → ui-review+
Comment 18•14 years ago
|
||
Someone on the front-end team should own this is it's worth driving through.
Assignee | ||
Comment 19•12 years ago
|
||
I rebased Ehsan's patch and tested it out locally. Carrying forward r+ from mano and ui-r+ from beltzner.
Attachment #302083 -
Attachment is obsolete: true
Attachment #632178 -
Flags: ui-review+
Attachment #632178 -
Flags: review+
Assignee | ||
Comment 20•12 years ago
|
||
(In reply to Ehsan Akhgari [:ehsan] from comment #18) > Someone on the front-end team should own this is it's worth driving through. I'll take care of this. Thanks for fixing this Ehsan :)
Comment 21•12 years ago
|
||
I'm having a hard time following the reasoning for why we want to remove this checkbox. Prompting all of the time is annoying - I'd rather we go in the opposite direction and just never prompt in the restart case.
Updated•12 years ago
|
Attachment #632178 -
Flags: feedback-
Updated•12 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 22•12 years ago
|
||
Yeah, I agree that the restart dialog doesn't add any benefit. All it does is reduce user confidence in our restart/session-restore implementation. This patch removes the restart dialog altogether.
Attachment #632458 -
Flags: review?(gavin.sharp)
Assignee | ||
Updated•12 years ago
|
Whiteboard: [has patch]
Assignee | ||
Updated•12 years ago
|
Attachment #632458 -
Flags: review?(felipc)
Assignee | ||
Updated•12 years ago
|
Attachment #632178 -
Attachment is obsolete: true
Attachment #632178 -
Flags: ui-review+
Attachment #632178 -
Flags: review+
Attachment #632178 -
Flags: feedback-
Comment 23•12 years ago
|
||
Comment on attachment 632458 [details] [diff] [review] Patch v2 - Removing the restart dialog I told Jared that I'll leave this review for Gavin as all these quit modes codepaths are quite involved and might exist for reasons that I don't know about
Attachment #632458 -
Flags: review?(felipc)
Assignee | ||
Comment 24•12 years ago
|
||
Review ping? I just ran into this again today on my beta installation :(
Assignee | ||
Updated•12 years ago
|
Summary: Remove the "Do not ask next time" checkbox from the quit prompt when restarting → Don't prompt on restart ("Firefox will try to restore your tabs upon restart [do not ask next time]" dialog removes trust and is unnecessary)
Comment 25•12 years ago
|
||
Comment on attachment 632458 [details] [diff] [review] Patch v2 - Removing the restart dialog Sorry I didn't look into this one sooner - I didn't realize that this was removing code that was effectively dead (by default) since bug 592822 (2.0). The removal looks good, but you can further simplify the code in _onQuitRequest by returning much earlier if aQuitType=="restart" (because it's now impossible for showPrompt to be true in that case, AFAICT).
Attachment #632458 -
Flags: review?(gavin.sharp) → feedback+
Assignee | ||
Comment 26•12 years ago
|
||
Moving the check for aQuitType=="restart" up earlier allowed me to remove the showPrompt variable too \o/
Attachment #632458 -
Attachment is obsolete: true
Attachment #695858 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 27•12 years ago
|
||
Comment on attachment 695858 [details] [diff] [review] Patch v2.1 Hmm, typing up that comment made me think about it again. I need to make sure that the logic is correct there...
Attachment #695858 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 28•12 years ago
|
||
Fixed the logic within _onQuitRestart that was broken with the v2.1 patch.
Attachment #695858 -
Attachment is obsolete: true
Attachment #695911 -
Flags: review?(gavin.sharp)
Updated•12 years ago
|
Summary: Don't prompt on restart ("Firefox will try to restore your tabs upon restart [do not ask next time]" dialog removes trust and is unnecessary) → remove off-by-default restart prompt code
Updated•12 years ago
|
Attachment #695911 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 29•12 years ago
|
||
Update STR: Open about:config and set browser.warnOnRestart=true Make sure there are at least three tabs open Open the Developer Toolbar (Shift+F2 on Windows) Type "restart" in the Developer Toolbar and hit Enter Pre-patch: The Restart dialog would show up. Post-patch: The Restart dialog should not show up. https://hg.mozilla.org/integration/mozilla-inbound/rev/7066060a3384
Whiteboard: [see comment 29 for updated STR]
Comment 30•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7066060a3384
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
You need to log in
before you can comment on or make changes to this bug.
Description
•