Closed
Bug 1503837
Opened 6 years ago
Closed 6 years ago
Deleting cookie from TB cookie manager does not reflect in the panel if any cookie but the last one is deleted
Categories
(Thunderbird :: Preferences, defect)
Tracking
(thunderbird_esr6064+ fixed, thunderbird64 fixed, thunderbird65 fixed)
RESOLVED
FIXED
Thunderbird 65.0
People
(Reporter: jorgk-bmo, Assigned: aceman)
References
Details
Attachments
(1 file, 1 obsolete file)
2.04 KB,
patch
|
aceman
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1503654 +++ Now that bug 1503654 has landed, cookies can be deleted again. However, there is no visual feedback in the panel if the first or any cookie but the last is removed. Works when removing the last cookie. It shows the correct result when opening and closing the panel again. Is that another listbox/richlistbox issue? Any takers?
Flags: needinfo?(richard.marti)
Flags: needinfo?(frgrahl)
Flags: needinfo?(acelists)
Comment 1•6 years ago
|
||
No listbox/richlistbox issue, a tree is used: https://searchfox.org/comm-central/source/mail/components/preferences/cookies.xul#42
Flags: needinfo?(richard.marti)
Comment 2•6 years ago
|
||
I am out. Completely swamped with SeaMonkey fixes and way behind. SeaMonkey uses a tree too and removes them in suite/components/dataman/content/dataman.js "delete: function cookies_delete() {". Maybe you can just copy some code from there.
Flags: needinfo?(frgrahl)
Reporter | ||
Comment 3•6 years ago
|
||
After landing bug 1503654 on ESR 60, it shows the same behaviour as trunk. Cookies can be deleted, but the visual feedback in the panel isn't correct. Nothing in the error console.
Reporter | ||
Comment 4•6 years ago
|
||
Lots of ugly code in mail/components/preferences/cookies.js :: deleteCookie(). The SM code (comment #2) looks less confusing. Looking at FF, it only offers to delete *all* site date including cookies for a specific site. So I think the time has come to remove that horrible tree that lets you delete individual cookies and offer a simple list that will remove all cookies for a site. That will solve all problems and makes more sense.
Reporter | ||
Comment 5•6 years ago
|
||
Given that deleting cookies was broken all throughout TB 52 and no one noticed, certainly not a top priority.
You mean last cookie from a host works fine, but if there is more of them for a host, the tree is not updated. But the cookies are removed correctly in all cases.
Flags: needinfo?(acelists)
Reporter | ||
Comment 7•6 years ago
|
||
Yes, although I think I saw various "tree not updated" cases. As I said, we can possibly scrap the tree and the code and remove all cookies for a site. That's what FF does. I haven't looked at FRG's suggestion in detail.
Took quite some time to find the trivial typo :( We ported the originAttributes comparision function, but not the negation, see Bug 1256153 comment 16 and https://hg.mozilla.org/mozilla-central/rev/ab3a305b3e41 (they landed something different in bug 1245184 that what is attached in the patches).
Reporter | ||
Comment 9•6 years ago
|
||
Comment on attachment 9023638 [details] [diff] [review] 1503837.patch Thanks, but there are two negations to remove: https://hg.mozilla.org/comm-central/rev/89c98293e4af#l2.12 https://hg.mozilla.org/comm-central/rev/89c98293e4af#l2.31 r+ with this fixed.
Attachment #9023638 -
Flags: review?(jorgk) → review+
Assignee | ||
Comment 10•6 years ago
|
||
Right, thanks.
Attachment #9023638 -
Attachment is obsolete: true
Attachment #9023741 -
Flags: review+
Comment 11•6 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/e6e4d75191c4 Bug 1503654 follow-up: Adapt to inverted logic of ChromeUtils.isOriginAttributesEqual in cookies dialog. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 12•6 years ago
|
||
Pretty embarrassing we messed up in bug 1503654 :-(
Reporter | ||
Updated•6 years ago
|
Attachment #9023741 -
Flags: approval-comm-esr60+
Attachment #9023741 -
Flags: approval-comm-beta+
Reporter | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 65.0
Reporter | ||
Comment 13•6 years ago
|
||
TB 60.3.1/TB 60.4 ESR https://hg.mozilla.org/releases/comm-esr60/rev/37051da6d8fd250f2ddbe45e600d75c301436b47
status-thunderbird64:
--- → affected
status-thunderbird65:
--- → fixed
status-thunderbird_esr60:
--- → fixed
tracking-thunderbird_esr60:
--- → 64+
Reporter | ||
Comment 14•6 years ago
|
||
Beta (TB 64 beta 3): https://hg.mozilla.org/releases/comm-beta/rev/5ca1b2b18ca0
You need to log in
before you can comment on or make changes to this bug.
Description
•