зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
33c30ae971
Коммит
554ee6118d
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче