Bug 1547813 - Part 2: Introduce nsIWebProgressListener::STATE_COOKIES_PARTITIONED_FOREIGN; r=baku
☠☠ backed out by 8fea66166287 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 08 May 2019 19:37:47 +0000
changeset 532055 279c140a4d71c537afd5eee36f3b9262f97c819b
parent 532054 0e0241f3d366f10b5eab0209897c2494064fadfb
child 532056 b4651cfaff307a7f3f05538907045b1e24a07923
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1547813
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1547813 - Part 2: Introduce nsIWebProgressListener::STATE_COOKIES_PARTITIONED_FOREIGN; r=baku This error code indicates the specific case where the antitracking backend rejects a particular access request because the resource is third-party and the cookie policy mandates that third-party resources must be partitioned. Differential Revision: https://phabricator.services.mozilla.com/D29737
uriloader/base/nsIWebProgressListener.idl
--- a/uriloader/base/nsIWebProgressListener.idl
+++ b/uriloader/base/nsIWebProgressListener.idl
@@ -287,16 +287,20 @@ interface nsIWebProgressListener : nsISu
    *
    * STATE_COOKIES_BLOCKED_BY_PERMISSION
    *   Rejected for custom site permission.
    *
    * STATE_COOKIES_BLOCKED_TRACKER
    *   Rejected because the resource is a tracker and cookie policy doesn't
    *   allow its loading.
    *
+   * STATE_COOKIES_PARTITIONED_FOREIGN
+   *   Rejected because the resource is a third-party and cookie policy forces
+   *   third-party resources to be partitioned.
+   *
    * STATE_COOKIES_BLOCKED_ALL
    *   Rejected because cookie policy blocks all cookies.
    *
    * STATE_COOKIES_BLOCKED_FOREIGN
    *   Rejected because cookie policy blocks 3rd party cookies.
    */
   const unsigned long STATE_BLOCKED_TRACKING_CONTENT       = 0x00001000;
   const unsigned long STATE_LOADED_TRACKING_CONTENT        = 0x00002000;
@@ -304,16 +308,17 @@ interface nsIWebProgressListener : nsISu
   const unsigned long STATE_LOADED_FINGERPRINTING_CONTENT  = 0x00000400;
   const unsigned long STATE_BLOCKED_CRYPTOMINING_CONTENT   = 0x00000800;
   const unsigned long STATE_LOADED_CRYPTOMINING_CONTENT    = 0x00200000;
   const unsigned long STATE_BLOCKED_UNSAFE_CONTENT         = 0x00004000;
   const unsigned long STATE_COOKIES_LOADED                 = 0x00008000;
   const unsigned long STATE_COOKIES_BLOCKED_BY_PERMISSION  = 0x10000000;
   const unsigned long STATE_COOKIES_BLOCKED_TRACKER        = 0x20000000;
   const unsigned long STATE_COOKIES_BLOCKED_ALL            = 0x40000000;
+  const unsigned long STATE_COOKIES_PARTITIONED_FOREIGN    = 0x80000000;
   const unsigned long STATE_COOKIES_BLOCKED_FOREIGN        = 0x00000080;
 
   /**
    * Notification indicating the state has changed for one of the requests
    * associated with aWebProgress.
    *
    * @param aWebProgress
    *        The nsIWebProgress instance that fired the notification