gecko-dev/netwerk/cookie
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
..
test 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
Cookie.cpp Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
Cookie.h
CookieCommons.cpp 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
CookieCommons.h Bug 1868390 - Have TCP block cookies by default behind a default-off preference - r=timhuang,cookie-reviewers,anti-tracking-reviewers 2023-12-12 19:00:01 +00:00
CookieJarSettings.cpp Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
CookieJarSettings.h Bug 1835913 - Deprecating RejectForeignAllowList. r=bvandersloot,anti-tracking-reviewers 2023-09-14 15:41:40 +00:00
CookieKey.h
CookieLogging.cpp
CookieLogging.h
CookieNotification.cpp Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
CookieNotification.h Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
CookiePersistentStorage.cpp Bug 1865199 - Parse partitioned attribute - r=cookie-reviewers,timhuang 2023-12-01 20:52:39 +00:00
CookiePersistentStorage.h Bug 1828942 - Added telemetry for cookie partition counting and purging for cookie jar size investigation. r=pbz,cookie-reviewers,valentin,bvandersloot 2023-11-22 19:14:35 +00:00
CookiePrivateStorage.cpp
CookiePrivateStorage.h Bug 1828942 - Added telemetry for cookie partition counting and purging for cookie jar size investigation. r=pbz,cookie-reviewers,valentin,bvandersloot 2023-11-22 19:14:35 +00:00
CookieService.cpp 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
CookieService.h 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
CookieServiceChild.cpp 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
CookieServiceChild.h Bug 1847298: IPC constructor cleanup r=nika,padenot,dom-storage-reviewers,necko-reviewers,cookie-reviewers,asuth,Jamie 2023-12-08 15:56:39 +00:00
CookieServiceParent.cpp Bug 1845938 - Change assertion to early return for GetBaseDomainFromHost failure. r=cookie-reviewers,valentin 2023-11-09 16:01:57 +00:00
CookieServiceParent.h Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
CookieStorage.cpp Bug 1828942 - Added telemetry for cookie partition counting and purging for cookie jar size investigation. r=pbz,cookie-reviewers,valentin,bvandersloot 2023-11-22 19:14:35 +00:00
CookieStorage.h Bug 1828942 - Added telemetry for cookie partition counting and purging for cookie jar size investigation. r=pbz,cookie-reviewers,valentin,bvandersloot 2023-11-22 19:14:35 +00:00
CookieXPCShellUtils.sys.mjs Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis 2023-06-02 20:00:35 +00:00
moz.build Bug 1859893 - batch 15 - migrate xpcshell.ini -> .toml. r=aryx,geckoview-reviewers,extension-reviewers,valentin,cookie-reviewers,pbz,owlish,robwu 2023-11-24 14:41:35 +00:00
nsICookie.idl Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
nsICookieJarSettings.idl
nsICookieManager.idl
nsICookieNotification.idl Bug 1854028 - Update BounceTrackingStorageObserver cookie check and remove nsICookieNotification isThirdPartyCookie. r=bvandersloot,cookie-reviewers,anti-tracking-reviewers,timhuang 2023-09-21 14:42:32 +00:00
nsICookiePermission.idl
nsICookieService.idl Bug 1839918 - Refactor "cookie-changed" notifications to use nsICookieNotification. r=extension-reviewers,cookie-reviewers,sessionstore-reviewers,bvandersloot,edgul,robwu 2023-09-18 11:55:08 +00:00
PCookieService.ipdl