Closed Bug 917052 Opened 11 years ago Closed 11 years ago

Change - Add a confirmation dialog for "Clear private data" in Options flyout

Categories

(Firefox for Metro Graveyard :: Flyouts, defect, P2)

x86
Windows 8.1
defect

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 27

People

(Reporter: ywang, Assigned: emtwo)

References

Details

(Keywords: uiwanted, Whiteboard: feature=change c=tbd u=tbd p=1)

Attachments

(3 files, 1 obsolete file)

To prevent accidentally clear private data by hitting the "Clear" button trying to scroll down Options panel.
Whiteboard: [preview-triage] feature=change c=tbd u=tbd p=0
reviewed in triage
Whiteboard: [preview-triage] feature=change c=tbd u=tbd p=0 → [preview] feature=change c=tbd u=tbd p=0
Assignee: nobody → msamuel
Attached image confirm_dialog
Comment on attachment 813377 [details] [diff] [review] v1: Dialog box to confirm before clearing private data Review of attachment 813377 [details] [diff] [review]: ----------------------------------------------------------------- r=mbrubeck with some trivial changes ::: browser/metro/base/content/browser-ui.js @@ +1077,5 @@ > break; > } > }, > > + confirmSanitizeDialog: function confirmSanitizeDialog() { Note: You can now write this without repeating the name. (The repetition used to be necessary for debugging, but the JS engine has gotten smarter since then.) I've been moving to toward this style, though it's not a big deal in files that still use the old style: confirmSanitizeDialog: function () { @@ +1096,5 @@ > + null, > + { value: false }); > + > + // Clicking 'Clear' will call onSanitize(). > + if (!buttonPressed) { Nit: Could you change this to "if (buttonPressed === 0)" as a hint to the reader that the return value is an integer, not a boolean? ::: browser/metro/locales/en-US/chrome/browser.properties @@ +36,5 @@ > # LOCALIZATION NOTE (contextAppbar2.clear): Unselects pages without modification. > contextAppbar2.clear=Clear selection > > +# Clear private data > +clearPrivateData.clear=Clear Nit: Please change this to something like "clearPrivateData.clearButton" so it's more obvious to the localizers how this string is used. @@ +37,5 @@ > contextAppbar2.clear=Clear selection > > +# Clear private data > +clearPrivateData.clear=Clear > +clearPrivateData.title=Clear Private data Style nit: "Data" should be capitalized in the title.
Attachment #813377 - Flags: review?(mbrubeck) → review+
Hey Marina, can you provide a point estimate for this bug?
Blocks: metrov1it16
No longer blocks: metrov1backlog
Status: NEW → ASSIGNED
Flags: needinfo?(msamuel)
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [preview] feature=change c=tbd u=tbd p=0 → feature=change c=tbd u=tbd p=0
p=1
Flags: needinfo?(msamuel)
Whiteboard: feature=change c=tbd u=tbd p=0 → feature=change c=tbd u=tbd p=1
Attached patch Tests (obsolete) — Splinter Review
Tests similar to those in browser_crashprompt.js to check for each button click case
Attachment #813651 - Flags: review?(mbrubeck)
Attached patch v2: TestsSplinter Review
Last patch was not up to date.
Attachment #813651 - Attachment is obsolete: true
Attachment #813651 - Flags: review?(mbrubeck)
Attachment #813652 - Flags: review?(mbrubeck)
Attachment #813652 - Flags: review?(mbrubeck) → review+
Whiteboard: feature=change c=tbd u=tbd p=1 → [fixed-in-fx-team]feature=change c=tbd u=tbd p=1
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]feature=change c=tbd u=tbd p=1 → feature=change c=tbd u=tbd p=1
Target Milestone: --- → Firefox 27
Mozilla/5.0 (Windows NT 6.2; rv:27.0) Gecko/20100101 Firefox/27.0 Verified on latest Nightly (build ID: 20131016030202) A confirmation dialog is now shown afer selecting "Clear private data" from the Options flyout.
Status: RESOLVED → VERIFIED
Depends on: 953072
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: