Closed
Bug 231499
Opened 21 years ago
Closed 21 years ago
Cookie Manager: Ctrl+Left-Click to select multiple items is broken in 1.6
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: weed_richard, Assigned: mconnor)
References
()
Details
Attachments
(1 file)
1.07 KB,
patch
|
dwitte
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
In Cookie Manager, if you use Ctrl+Left-Click to select multiple cookies to remove and then hit Remove Cookie, the display just blanks out (without removing) those lines in the list. If you close and reopen the window, you see that the cookies were *not* deleted.
If you delete the cookies one at a time, it works fine. This worked fine in 1.3.x...just noticed when I upgraded to 1.6.
Only tested in Windows 2000.
Reproducible: Always
Steps to Reproduce:
1. Open Cookie Manager.
2. Using Ctrl+Left-Mouse-Click, select multiple cookies to remove and hit Remove Cookie.
3. Close Cookie Manager.
4. Open Cookie Manager again...you will see that the cookies were *not* removed.
Actual Results:
The problem occurred.
Expected Results:
It should have removed the selected cookies. Also, it should not have just blanked out the lines in the display.
Reporter | ||
Comment 1•21 years ago
|
||
Important: To recreate the bug, the items you select must *not* be grouped together in the list. Example: If there are 5 cookies, pick 1, 3, and 5 using Ctrl+Left-click.
Same behavior with 1.6 on FreeBSD, i.e. cookie 1 disappears from the list,
cookies 3 and 5 go blank (but remain selected/highlighted?) and none of the
cookies get deleted.
Hitting "Remove" two more times appears to accomplish the original objective of
removing all three.
Same behavior is occurring with a trunk pull from last night.
Comment 3•21 years ago
|
||
-> cookies, and confirming on linux 2004011608
No javascript console messages
Assignee: general → darin
Status: UNCONFIRMED → NEW
Component: Browser-General → Cookies
Ever confirmed: true
QA Contact: general → cookieqa
This is what I'm seeing in the js console when the remove is attempted (.6 and
trunk):
Error: cookies[idx] has no properties
Source File: chrome://communicator/content/wallet/CookieViewer.js
Line: 314
Error: cookies[row] has no properties
Source File: chrome://communicator/content/wallet/CookieViewer.js
Line: 165
Error: cookies[row] has no properties
Source File: chrome://communicator/content/wallet/CookieViewer.js
Line: 167
http://lxr.mozilla.org/seamonkey/source/extensions/wallet/cookieviewer/resources/content/nsWalletTreeUtils.js#63
appears to be causing prematurely exit of the loop.
The Hardware/OS should be All/All - see the comments. And IMO the keyword
regression should be included. This has worked with 1.5.
Assignee | ||
Comment 7•21 years ago
|
||
-> me
Assignee: darin → mconnor
OS: Windows 2000 → All
Hardware: PC → All
Target Milestone: --- → mozilla1.7alpha
Assignee | ||
Comment 8•21 years ago
|
||
Neil, any idea why rowCountChanged fails here? it only happens with the
selections aren't contiguous.
also, why did you remove the part of the code that keeps the scroll position?
Comment 9•21 years ago
|
||
We're getting spurious tree notifications. The old code used to ignore the
resulting exceptions but these days they propagate out of rowCountChanged :-/
Note that setting selectEventsSuppressed to false merely postpones select
events until it is set back to true again.
Comment 10•21 years ago
|
||
Comment on attachment 139658 [details] [diff] [review]
Proposed patch
Well when I say spurious I mean unwanted.
Attachment #139658 -
Flags: review?(dwitte)
Comment 11•21 years ago
|
||
*** Bug 231977 has been marked as a duplicate of this bug. ***
Comment 12•21 years ago
|
||
*** Bug 232799 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Attachment #139658 -
Flags: review?(dwitte) → review+
Updated•21 years ago
|
Attachment #139658 -
Flags: superreview?(darin)
Comment 13•21 years ago
|
||
Comment on attachment 139658 [details] [diff] [review]
Proposed patch
rs=darin
Attachment #139658 -
Flags: superreview?(darin) → superreview+
Comment 14•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 15•20 years ago
|
||
*** Bug 251312 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•