Closed Bug 1503654 Opened 6 years ago Closed 6 years ago

Port bug 1259169 nsICookieManager::remove() should be back-compatible for 1 or 2 releases and fix comparision

Categories

(Thunderbird :: Preferences, task)

50 Branch
task
Not set
normal

Tracking

(thunderbird_esr52 wontfix, thunderbird_esr6064+ fixed, thunderbird63 wontfix, thunderbird64 fixed, thunderbird65 fixed)

RESOLVED FIXED
Thunderbird 65.0
Tracking Status
thunderbird_esr52 --- wontfix
thunderbird_esr60 64+ fixed
thunderbird63 --- wontfix
thunderbird64 --- fixed
thunderbird65 --- fixed

People

(Reporter: frg, Assigned: frg)

References

Details

Attachments

(2 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1256153 +++

Bug 1259169 changed the parameter order for the cookies remove call. As neil pointed out in Bug 1256153 comment 16 the name of the comparision method also changed.
Patch up to 63.
Attached patch 1503654-cookies-cc.patch (obsolete) — Splinter Review
TB 64+ only needs the comparision fixed because bug 1260399 reverted the parameter order.
Attachment #9021603 - Flags: review?(jorgk)
Comment on attachment 9021601 [details] [diff] [review]
1503654-cookies-upto63.patch

[Approval Request Comment]
Regression caused by (bug #): bug 1259169
User impact if declined: cookies can not be deleted.
Testing completed (on c-c, etc.): not yet
Risk to taking this patch (and alternatives if risky): trivial

Patch is untested. Please check it out.
Attachment #9021601 - Flags: review?(jorgk)
Attachment #9021601 - Flags: feedback?(neil)
Attachment #9021601 - Flags: approval-comm-esr60?
Comment on attachment 9021601 [details] [diff] [review]
1503654-cookies-upto63.patch

OK. So we note that in TB 60, bool comes before origin attributes.

Our chat friends changed that but forgot the rest of the product:
https://hg.mozilla.org/releases/comm-beta/rev/8f10f52f195829c856757ebb094fe9fbabe639eb#l1.18

Lent me do the checkin, I need to fix the commit message a bit.
Attachment #9021601 - Flags: review?(jorgk)
Attachment #9021601 - Flags: review+
Attachment #9021601 - Flags: approval-comm-esr60?
Attachment #9021601 - Flags: approval-comm-esr60+
Comment on attachment 9021603 [details] [diff] [review]
1503654-cookies-cc.patch

(In reply to Frank-Rainer Grahl (:frg) from comment #2)
> TB 64+ only needs the comparision fixed because bug 1260399 reverted the
> parameter order.
Where do you see that? I don't think so, see:
https://searchfox.org/mozilla-central/search?q=Services.cookies.remove&case=false&regexp=false&path=
Are you trying to confuse me?

I think the patch should be identical for all versions >= 60.
Attachment #9021603 - Flags: review?(jorgk)
> Are you trying to confuse me?

Yes.

> I think the patch should be identical for all versions >= 60

I am sorry you are right. I thought this was reverted because Bug 1260399 explicitly stated "Revert bug 1259169" but I see all it did was made the optional parameter mandatory:

>                in boolean       aBlocked,
> -              [optional] in jsval aOriginAttributes);
> +              in jsval         aOriginAttributes);

Sorry for the confusion. I looked at mozilla-central but don't ask me why I overlooked this. Too many tasks... I will upload a new patch for cc. Needs a minor rebase.
This should do it for cc.
Attachment #9021603 - Attachment is obsolete: true
Attachment #9021687 - Flags: review?(jorgk)
Comment on attachment 9021687 [details] [diff] [review]
1503654-cookies-cc.patch

Yes, this should do the trick. No need for checkin-needed, I handle it in the morning.

In the commit comment you say:
Bug 1503654 - Correct comparision and parameter order for cookie removal.
Port Bug 1259169 and fix port of Bug 1245184.

I think this should be:
Bug 1503654 - Correct comparision and parameter order for cookie removal.
Port Bug  1245184 (comparison function) and bug 1259169 (parameter order).
Attachment #9021687 - Flags: review?(jorgk) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/89c98293e4af
Correct comparision (from bug 1245184) and parameter order (from bug 1259169) for cookie removal. r=jorgk
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 65.0
Attachment #9021687 - Flags: approval-comm-beta+
Blocks: 1503837
TB 60.3.1/TB 60.4 ESR:
https://hg.mozilla.org/releases/comm-esr60/rev/c9dd6a36ae6244864117ed63f48bbb6331a0d6bc

No one noticed the problem through the entire 52 ESR cycle :-( - I pushed it now to see whether the ESR also suffers from bug 1503837.
No longer blocks: 1503837
Depends on: 1503837
Attachment #9021601 - Flags: feedback?(neil)
Type: defect → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: