Bug 1297755 - Allow e10s add-on policy based on the multiprocessCompatible flag. r=mconley a=ritu
authorFelipe Gomes <felipc@gmail.com>
Mon, 12 Sep 2016 13:19:06 -0300
changeset 350277 a9c45aee1a0c09917998034f006214fe1d21303e
parent 350276 2c332306c030ca66df397155349cb5dd61165f69
child 350278 8c37b5ac91e8671700cec6faed487e19f01e9e3c
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley, ritu
bugs1297755
milestone50.0a2
Bug 1297755 - Allow e10s add-on policy based on the multiprocessCompatible flag. r=mconley a=ritu MozReview-Commit-ID: BSuA1cF1HYl
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;