From 55a319011c0e6920c81dcd04d22e216813d3384f Mon Sep 17 00:00:00 2001 From: Tim Huang Date: Wed, 20 Nov 2024 23:38:08 +0000 Subject: [PATCH] Bug 1918336 - Introduce the content blocking event STATE_COOKIES_PARTITIONED_TRACKER. r=anti-tracking-reviewers,bvandersloot This patch introduces the content blocking event STATE_COOKIES_PARTITIONED_TRACKER to represent the tracker cookie is partitioned. Differential Revision: https://phabricator.services.mozilla.com/D229328 --- uriloader/base/nsIWebProgressListener.idl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/uriloader/base/nsIWebProgressListener.idl b/uriloader/base/nsIWebProgressListener.idl index b350c05446b4..cb9723e3a2b9 100644 --- a/uriloader/base/nsIWebProgressListener.idl +++ b/uriloader/base/nsIWebProgressListener.idl @@ -320,6 +320,10 @@ interface nsIWebProgressListener : nsISupports * Rejected because the resource is a tracker from a social origin and * cookie policy doesn't allow its loading. * + * STATE_COOKIES_PARTITIONED_TRACKER + * Rejected because the resource is a third-party tracker and cookie policy + * forces third-party resources to be partitioned. + * * STATE_COOKIES_PARTITIONED_FOREIGN * Rejected because the resource is a third-party and cookie policy forces * third-party resources to be partitioned. @@ -383,6 +387,7 @@ interface nsIWebProgressListener : nsISupports const unsigned long STATE_COOKIES_BLOCKED_TRACKER = 1 << 29; const unsigned long STATE_COOKIES_BLOCKED_SOCIALTRACKER = 1 << 24; const unsigned long STATE_COOKIES_BLOCKED_ALL = 1 << 30; + const unsigned long STATE_COOKIES_PARTITIONED_TRACKER = 1 << 1; const unsigned long STATE_COOKIES_PARTITIONED_FOREIGN = 1 << 31; const unsigned long STATE_COOKIES_BLOCKED_FOREIGN = 1 << 7; const unsigned long STATE_BLOCKED_SOCIALTRACKING_CONTENT = 1 << 16;