Closed
Bug 1484315
Opened 6 years ago
Closed 5 years ago
Anti-tracking cookie code has a lot of third-party checks that could be refactored
Categories
(Core :: Networking: Cookies, defect, P3)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
mozilla74
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: francois, Assigned: ehsan.akhgari)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
I noticed that the cookie code makes a number of third-party checks just before it looks for trackers:
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/CookieServiceChild.cpp#175-191
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/CookieServiceChild.cpp#574-588
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/CookieServiceChild.cpp#630-645
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/CookieServiceParent.cpp#156-169
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/nsCookieService.cpp#2038-2053
https://searchfox.org/mozilla-central/rev/5dbfd833bbb114afe758db4d4bdbc5b13bcc33ef/netwerk/cookie/nsCookieService.cpp#2145-2160
In bug 1482950, I'm introducing a GetIsThirdPartyTrackingResource() function which does the correct third-party check (not trivial, see bug 1108017). It might be worth moving the cookie code over to that.
Assignee | ||
Comment 1•6 years ago
|
||
Yes, it would be nice to use the same code here too...
Updated•6 years ago
|
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cbb1fd48d429
Refactor the third-party checks used in the cookie backend; r=baku
Comment 4•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox74:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in
before you can comment on or make changes to this bug.
Description
•