Closed Bug 481958 Opened 17 years ago Closed 17 years ago

Correct relationship between sort marker/arrow and sort direction in Cookie Manager

Categories

(SeaMonkey :: Passwords & Permissions, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0b1

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

References

Details

Attachments

(1 file)

In bug 476175 it was noticed that the sort marker/arrow is always pointing in the wrong direction. Example: By default the tree is sorted ascending by Site (host) but the sort marker shows the opposite (descending order). The mentioned bug didn't change that, it has been like that before. The sortDirection attribute of the domainCol (cookieViewer.xul) needs to be switched to "ascending" as part of this bug but it's not enough: clicking any column header (clicking the same again to switch the sort direction) will show that the actual problem lies in the sorting code (cookieViewer.js, probably CookieColumnSort(), maybe SortTree()).
Regarding CookieColumnSort(): In the beginning of the function lastCookieSortAscending is actually the last sort direction but after SortTree() has been called it's the new (possibly same) sort direction. That's why the old sortDirection attribute setting logic needs to be reversed.
Assignee: nobody → jh
Status: NEW → ASSIGNED
Attachment #367465 - Flags: superreview?(neil)
Attachment #367465 - Flags: review?(neil)
Comment on attachment 367465 [details] [diff] [review] proposed patch [Checkin: Comment 4] Actually, I didn't think to check the allowed/blocked hosts list; it might have the same problem.
Attachment #367465 - Flags: superreview?(neil)
Attachment #367465 - Flags: superreview+
Attachment #367465 - Flags: review?(neil)
Attachment #367465 - Flags: review+
Blocks: 483516
(In reply to comment #2) > (From update of attachment 367465 [details] [diff] [review]) > Actually, I didn't think to check the allowed/blocked hosts list; it might have > the same problem. It does but I'll address all of that (sorting arrows, adding a confirmation dialog for deleting multiple permissions) in bug 483516.
Keywords: checkin-needed
Attachment #367465 - Attachment description: proposed patch → proposed patch [Checkin: Comment 4]
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: