Closed Bug 1710232 Opened 5 years ago Closed 3 years ago

Remove dead code: unused function UseSiteForFirstPartyDomain in OriginAttributes

Categories

(Core :: Privacy: Anti-Tracking, task, P3)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: robwu, Assigned: shahrushil74, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++] )

Attachments

(1 external file)

The UseSiteForFirstPartyDomain function at https://searchfox.org/mozilla-central/rev/62dd9125c6ca885f670678921f885fed2dad2a89/caps/OriginAttributes.h#107-112 is unused. It became obsolete with the refactor from https://hg.mozilla.org/mozilla-central/rev/bd311336daa756c251f5b6a970ba638f7575a7b0 (which split the logic across two getters SetFirstPartyDomain and SetPartitionKey).

These few lines should be removed.

It's just dead code, so I'll mark it as depends on instead of a regression instead.

Depends on: 1640135
Keywords: regression
No longer regressed by: 1640135

So once done we can close Bug 1630869 ?

No, this is just a cleanup. Just removal of unused code.

Bug 1630869 can only be resolved when privacy.firstparty.isolate.use_site flips from false to true. It also involves a data migration. That bug is a follow-up to bug 1637516.

Mentor: tihuang
Keywords: good-first-bug
Priority: -- → P3
Whiteboard: [lang=C++]

Hi, I would like to work on this bug.
Please assign it to me.
I'm surprised that in 2 years no-one else has worked on this bug. Is it really just removing 6 lines from OriginAttributes.h? There's no catch?

Assignee: nobody → shahrushil74
Status: NEW → ASSIGNED
Pushed by tihuang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d05950217c18 remove dead code unused function UseSiteForFirstPartyDomain in OriginAttributes.h. r=timhuang
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: