Closed Bug 263940 Opened 20 years ago Closed 20 years ago

delete nonexistent cookie: prefs dialog OK button doesn't work

Categories

(Firefox :: Settings UI, defect)

1.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox1.0

People

(Reporter: danm.moz, Assigned: danm.moz)

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file)

Tools -> Options -> Privacy -> Cookies -> View Cookies
Delete at least one cookie
Scroll to the bottom of the list
Lo! What are all these blank lines at the end of the list? Select one...
Delete the blank line
Click OK to exit the View Cookies dialog
Click OK to exit Preferences
-- Nothing happens. OK is a dead button.
   You can cancel out of the dialog. There is a JavaScript error.

No similar error seems to exist in a 20041006 Suite trunk build.
This patch fixes the problem by disallowing the user from selecting deleted
cookies in the first place. Without this patch, treeUtils.js attempts to access
a property of the view object named _rowCount. There is no such property. Using
the real property seems like a good and safe thing, so I'm going to hit the
block? switch, just to ensure someone looks at it.

Curious thing about this patch, it exactly reverses revision 1.5.4.2 of
treeUtils.js on the Aviary branch. The checkin comment for that revision blames
ben and cites bug 250898. The patch posted in that bug makes no mention of this
file.
Flags: blocking-aviary1.0?
Flags: blocking-aviary1.0? → blocking-aviary1.0+
Comment on attachment 161802 [details] [diff] [review]
can't select nonexistent cookies to delete

r+a=ben@mozilla.org

land now! now!
Attachment #161802 - Flags: review+
Attachment #161802 - Flags: approval-aviary+
Assignee: bugs → danm.moz
(In reply to comment #1)
> Curious thing about this patch, it exactly reverses revision 1.5.4.2 of
> treeUtils.js on the Aviary branch. The checkin comment for that revision blames
> ben and cites bug 250898. The patch posted in that bug makes no mention of this
> file.
It's part of the first patch in bug 250898.
Whiteboard: [have patch] - ready to land
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [have patch] - ready to land
Target Milestone: --- → Firefox1.0
Keywords: fixed-aviary1.0
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: