Bug 1314429 - Allow every add-on to run on e10s, except those explictly marked with multiprocessCompatible=false. r=mconley

There's also an existing blocklist of add-ons in bootstrap.js that currently only includes TabMixPlus

MozReview-Commit-ID: 5ocmfpxApxn
This commit is contained in:
Felipe Gomes 2016-11-11 13:43:03 -02:00
Родитель 33c30ae971
Коммит 554ee6118d
3 изменённых файлов: 12 добавлений и 2 удалений

2
browser/extensions/e10srollout/bootstrap.js поставляемый
Просмотреть файл

@ -17,7 +17,7 @@ const TEST_THRESHOLD = {
};
const ADDON_ROLLOUT_POLICY = {
"beta" : "50allmpc", // Any WebExtension or addon with mpc = true
"beta" : "51alladdons", // Any WebExtension or addon with mpc = true
"release" : "50allmpc", // Any WebExtension or addon with mpc = true
};

Просмотреть файл

@ -10,7 +10,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>e10srollout@mozilla.org</em:id>
<em:version>1.5</em:version>
<em:version>1.6</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:multiprocessCompatible>true</em:multiprocessCompatible>

Просмотреть файл

@ -121,6 +121,8 @@ const RolloutPolicy = {
// Beta testing on 50
"50allmpc": { addons: [], webextensions: true, mpc: true },
"51alladdons": { addons: [], webextensions: true, alladdons: true },
"xpcshell-test": { addons: [ADDONS.test1, ADDONS.test2], webextensions: false },
};
@ -142,6 +144,14 @@ Object.defineProperty(this, "isAddonPartOfE10SRollout", {
let policy = RolloutPolicy[policyId];
if (policy.alladdons) {
if (aAddon.multiprocessCompatible === false) {
return false;
}
return true;
}
if (policy.webextensions && aAddon.type == "webextension") {
return true;
}