Bug 1547813 - Part 11: Add support for reporting breakage when the nsICookieService.BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN cookie policy is active; r=johannh
☠☠ backed out by 8fea66166287 ☠ ☠
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 08 May 2019 19:38:12 +0000
changeset 473247 f9d790139a26b2733cb1f83bdecce06633f4f94a
parent 473246 a29f58cef0224159623273401d17c769ab98fc6d
child 473248 98989127264bd94ee0030809e1a9019832198a8f
push id35993
push usernbeleuzu@mozilla.com
push dateFri, 10 May 2019 02:54:27 +0000
treeherdermozilla-central@a42caa9f04fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh
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 11: Add support for reporting breakage when the nsICookieService.BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN cookie policy is active; r=johannh Differential Revision: https://phabricator.services.mozilla.com/D30120
browser/base/content/browser-contentblocking.js
--- a/browser/base/content/browser-contentblocking.js
+++ b/browser/base/content/browser-contentblocking.js
@@ -493,16 +493,18 @@ var ThirdPartyCookies = {
       return "allcookiesblocked";
     case Ci.nsICookieService.BEHAVIOR_LIMIT_FOREIGN:
       return "cookiesfromunvisitedsitesblocked";
     default:
       Cu.reportError(`Error: Unknown cookieBehavior pref observed: ${this.behaviorPref}`);
       // fall through
     case Ci.nsICookieService.BEHAVIOR_REJECT_TRACKER:
       return "cookierestrictions";
+    case Ci.nsICookieService.BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN:
+      return "cookierestrictionsforeignpartitioned";
     }
   },
 
   updateCategoryLabel() {
     let label;
     switch (this.behaviorPref) {
     case Ci.nsICookieService.BEHAVIOR_REJECT_FOREIGN:
       label = ContentBlocking.showBlockedLabels ? "contentBlocking.cookies.blocking3rdParty.label" : null;