Bug 1297755 - Allow e10s add-on policy based on the multiprocessCompatible flag. r=mconley
authorFelipe Gomes <felipc@gmail.com>
Mon, 12 Sep 2016 13:19:06 -0300
changeset 355192 a6637618e917ae88cdfc547a276192ec40dd9f0f
parent 355191 8bce29dda76e4e5d09eb7d91ef4e335629d6861f
child 355193 e5195a75e9e737fefd4cb3ed9e655a447a44221e
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1297755
milestone51.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 1297755 - Allow e10s add-on policy based on the multiprocessCompatible flag. r=mconley MozReview-Commit-ID: ASqoNFI2ZAI
toolkit/mozapps/extensions/internal/E10SAddonsRollout.jsm
--- a/toolkit/mozapps/extensions/internal/E10SAddonsRollout.jsm
+++ b/toolkit/mozapps/extensions/internal/E10SAddonsRollout.jsm
@@ -113,16 +113,19 @@ const RolloutPolicy = {
   // Set agreed for Release 49
   "49a": { addons: set49Release, webextensions: true },
   "49b": { addons: set49Release, webextensions: false },
 
   // Smaller set that can be used for Release 49
   "49limiteda": { addons: set49PaneOnly, webextensions: true },
   "49limitedb": { addons: set49PaneOnly, webextensions: false },
 
+  // Beta testing on 50
+  "50allmpc": { addons: [], webextensions: true, mpc: true },
+
   "xpcshell-test": { addons: [ADDONS.test1, ADDONS.test2], webextensions: false },
 };
 
 Object.defineProperty(this, "isAddonPartOfE10SRollout", {
   configurable: false,
   enumerable: false,
   writable: false,
   value: function isAddonPartOfE10SRollout(aAddon) {
@@ -138,16 +141,20 @@ Object.defineProperty(this, "isAddonPart
     }
 
     let policy = RolloutPolicy[policyId];
 
     if (policy.webextensions && aAddon.type == "webextension") {
       return true;
     }
 
+    if (policy.mpc && aAddon.multiprocessCompatible) {
+      return true;
+    }
+
     for (let rolloutAddon of policy.addons) {
       if (aAddon.id == rolloutAddon.id &&
           Services.vc.compare(aAddon.version, rolloutAddon.minVersion) >= 0) {
         return true;
       }
     }
 
     return false;