Remove dead code: unused function UseSiteForFirstPartyDomain in OriginAttributes
Categories
(Core :: Privacy: Anti-Tracking, task, P3)
Tracking
()
| 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.
| Reporter | ||
Comment 1•5 years ago
|
||
It's just dead code, so I'll mark it as depends on instead of a regression instead.
Comment 2•5 years ago
|
||
So once done we can close Bug 1630869 ?
| Reporter | ||
Comment 3•5 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
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 | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
| bugherder | ||
Description
•