gecko-dev/toolkit/components/antitracking/test
Benjamin VanderSloot 57b9951a5d Bug 1872896 - Add deprecation console message for cookies that are foreign and not Partitioned - r=timhuang,cookie-reviewers,anti-tracking-reviewers
In order to do this, I had to alter how we do third-party cookie blocking under CHIPS + TCP.

Before we performed the block in CheckPrefs, where we haven't parsed the cookie header (which can have multiple cookie lines) yet.
Instead, I added a new argument into CanSetCookie, which says if the cookie needs to be partitioned to be accepted (TCP && foreign && not unpartitioned).
Then inside of CanSetCookie, if that is set we warn in the console and drop the cookie if the CHIPS preference is set. The warning changes based on that pref too.

Differential Revision: https://phabricator.services.mozilla.com/D197711
2024-01-09 15:52:30 +00:00
..
browser Bug 1872896 - Add deprecation console message for cookies that are foreign and not Partitioned - r=timhuang,cookie-reviewers,anti-tracking-reviewers 2024-01-09 15:52:30 +00:00
gtest Bug 1823342 - Make toolkit/components/antitracking/test/gtest buildable outside of a unified build environment r=andi 2023-03-21 10:47:29 +00:00
xpcshell Bug 1859247 - Part 2: Add tests. r=anti-tracking-reviewers,pbz 2023-12-08 15:24:20 +00:00