Bug 1359495 - Expose webextension status in the multi cohorts. r=Felipe
--- a/browser/extensions/e10srollout/bootstrap.js
+++ b/browser/extensions/e10srollout/bootstrap.js
@@ -170,29 +170,36 @@ function defineCohort() {
!inMultiExperiment ||
userOptedIn.multi ||
disqualified ||
getAddonsDisqualifyForMulti()) {
Preferences.reset(PREF_E10S_PROCESSCOUNT + ".web");
return;
}
+ // If we got here with a cohortPrefix, it must be "addons-set50allmpc-",
+ // and we know because of getAddonsDisqualifyForMulti that the addons that
+ // are installed must be web extensions.
+ if (cohortPrefix) {
+ cohortPrefix = "webextensions-";
+ }
+
// The user is in the multi experiment!
// Decide how many content processes to use for this user.
let BUCKETS = {
1: .25,
2: .5,
4: .75,
8: 1
};
let multiUserSample = getUserSample(true);
for (let sampleName of Object.getOwnPropertyNames(BUCKETS)) {
if (multiUserSample < BUCKETS[sampleName]) {
- setCohort(`multiBucket${sampleName}`);
+ setCohort(`${cohortPrefix}multiBucket${sampleName}`);
Preferences.set(PREF_E10S_PROCESSCOUNT + ".web", sampleName);
break;
}
}
}
function shutdown(data, reason) {
}