Bug 1547813 - Part 1: Introduce nsICookieService::BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN; r=baku
☠☠ backed out by 8fea66166287 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 08 May 2019 19:37:40 +0000
changeset 532054 0e0241f3d366f10b5eab0209897c2494064fadfb
parent 532053 6f7374e16ef5826b723a558a2447dda0595dc57b
child 532055 279c140a4d71c537afd5eee36f3b9262f97c819b
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 1: Introduce nsICookieService::BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN; r=baku This new code designates our new cookie policy for blocking cookies and storage access from third-party trackers and partitioning the cookie jar of the rest of third-party resources. Differential Revision: https://phabricator.services.mozilla.com/D29736
netwerk/cookie/nsICookieService.idl
--- a/netwerk/cookie/nsICookieService.idl
+++ b/netwerk/cookie/nsICookieService.idl
@@ -85,18 +85,19 @@ interface nsICookieService : nsISupports
    * Possible values for the "network.cookie.cookieBehavior" preference.
    */
   const uint32_t BEHAVIOR_ACCEPT         = 0; // allow all cookies
   const uint32_t BEHAVIOR_REJECT_FOREIGN = 1; // reject all third-party cookies
   const uint32_t BEHAVIOR_REJECT         = 2; // reject all cookies
   const uint32_t BEHAVIOR_LIMIT_FOREIGN  = 3; // reject third-party cookies unless the
                                               // eTLD already has at least one cookie
   const uint32_t BEHAVIOR_REJECT_TRACKER = 4; // reject trackers
+  const uint32_t BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN = 5; // reject trackers, partition third-party cookies
   // When adding a new cookie behavior, please increase this value!
-  const uint32_t BEHAVIOR_LAST           = 4;
+  const uint32_t BEHAVIOR_LAST           = 5;
 
   /*
    * Possible values for the "network.cookie.lifetimePolicy" preference.
    */
   const uint32_t ACCEPT_NORMALLY   = 0; // accept normally
   // Value = 1 is considered the same as 0 (See Bug 606655).
   const uint32_t ACCEPT_SESSION    = 2; // downgrade to session
   // Value = 3 is considered the same as 0