Closed Bug 175359 Opened 22 years ago Closed 21 years ago

Add confirm dialog for Remove All Cookies/Remove All Sites

Categories

(Core :: Networking: Cookies, enhancement, P3)

enhancement

Tracking

()

VERIFIED FIXED
mozilla1.7alpha

People

(Reporter: junkmail, Assigned: mconnor)

Details

(Whiteboard: checkmac checklinux)

Attachments

(1 file, 1 obsolete file)

Both the Stored Cookies and Cookie Sites tabs in the Cookie Manager dialog box
work the same way, and have the same problem: The Remove [one] button is
adjacent to the Remove [All] button, and there's no safety for the Remove all. 
This bit me on the Cookie site tab but I guess it could be an issue on the
Stored Cookie tab as well.  I tend to block all cookies and then go back and
allow specific sites.  If I slip and hit the Remove All Sites button instead of
Remove Site, I lose months and months of accumulated information about which
sites can and can't set cookies.  A confirmation dialog would solve the problem
of mis-clicks.
sounds like a good idea to me, Steve what do you think?  
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Too easy to "Remove All Sites" and "Remove All Cookies" → [rfe] Add confirm dialog for Remove All Cookies button (was Too easy to "Remove All Sites" and "Remove All Cookies")
yes, a good idea -> suresh
Assignee: morse → suresh
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Attached patch patch (obsolete) — Splinter Review
Jatin, can you please review the text/string used in this patch?

+deleteAllCookies=Are you sure you want to delete all the cookies?
+deleteAllCookiesSites=Are you sure you want to delete all the cookies sites?

Thanks!
Looks good to me, r=jatin
Severity: minor → enhancement
Summary: [rfe] Add confirm dialog for Remove All Cookies button (was Too easy to "Remove All Sites" and "Remove All Cookies") → Add confirm dialog for Remove All Cookies button (was Too easy to "Remove All Sites" and "Remove All Cookies")
Since a patch and review for it is available for 9 months already - isn't it a
good idea to include it into nearest Mozilla milestone?
Comment on attachment 113733 [details] [diff] [review]
patch

> function DeleteAllCookies() {
>+  if (!confirm(cookieBundle.getString("deleteAllCookies")))
>+    return;

Use the promptservice instead of confirm().
Attachment #113733 - Flags: review-
-> me
Assignee: skasinathan → mconnor
Status: ASSIGNED → NEW
Target Milestone: --- → mozilla1.7alpha
Status: NEW → ASSIGNED
Priority: -- → P3
QA Contact: tever → cookieqa
Summary: Add confirm dialog for Remove All Cookies button (was Too easy to "Remove All Sites" and "Remove All Cookies") → Add confirm dialog for Remove All Cookies/Remove All Sites
this also differentiates the dialog for Remove All Sites depending on whether
it is for images or cookies, which the original did not do.
Attachment #113733 - Attachment is obsolete: true
Attachment #138504 - Flags: review?(mvl)
Comment on attachment 138504 [details] [diff] [review]
patch against tip using promptservice.

>Index: mozilla/extensions/wallet/cookieviewer/resources/content/CookieViewer.js

>@@ -532,14 +540,20 @@ function buttonEnabling(textfield) {

>+  var msgType = dialogType == cookieType ? "deleteAllCookiesSites" : "deleteAllImagesSites";

I personally find it more clear to write | msgType = (dialogType == cookieType)
? |

>Index: mozilla/extensions/wallet/cookieviewer/resources/locale/en-US/CookieViewer.properties

>+deleteAllCookies=Are you sure you want to delete all the cookies?
>+deleteAllCookiesTitle=Remove All Cookies
>+deleteAllCookiesSites=Are you sure you want to delete all of the cookie sites?
>+deleteAllImagesSites=Are you sure you want to delete all of the image sites?
>+deleteAllSitesTitle=Remove All Sites

r=mvl, but i'm not sure i like the "delete cookie sites" part. I would like to
delete doubleclick.net, but i can't ;) But maybe it is just me not being native
english. Let someone else look at that.
Attachment #138504 - Flags: review?(mvl) → review+
Comment on attachment 138504 [details] [diff] [review]
patch against tip using promptservice.

I guess my feeling on the cookie sites bit is that its not perfect, but that's 
what the tab is called.
Attachment #138504 - Flags: superreview?(darin)
Comment on attachment 138504 [details] [diff] [review]
patch against tip using promptservice.

moving this to alecf, darin is pretty swamped for SR
Attachment #138504 - Flags: superreview?(darin) → superreview?(alecf)
Comment on attachment 138504 [details] [diff] [review]
patch against tip using promptservice.

nice. sr=alecf
Attachment #138504 - Flags: superreview?(alecf) → superreview+
landed on trunk 01/27/2004 08:41
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
V/fixed:
Mac OS X, 1.7.2.
Status: RESOLVED → VERIFIED
Whiteboard: checkmac checklinux
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: