Bug 1405960 - Force e10s-multi off in a cross-branch way. r=mconley

The existing code was a no-op on beta, where dom.ipc.processCount defaults to
1 and is overridden by dom.ipc.processCount.web if it's set. Now that we don't
select a single process count (because of an incompatible addon) on beta, we
have to use a different method of disabling multi.

MozReview-Commit-ID: 1KdyQdUFgNf

--HG--
extra : rebase_source : 9f4823b02a2b022ec96d36b916388fe63536f2c3
This commit is contained in:
Blake Kaplan 2017-10-05 15:23:27 -07:00
Родитель 5767c9b968
Коммит 718ebef945
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -28,7 +28,7 @@ Cu.import("resource:///modules/RecentWindow.jsm");
const ANIMATION_PREF = "toolkit.cosmeticAnimations.enabled";
const PROCESS_COUNT_PREF = "dom.ipc.processCount";
const MULTI_OPT_OUT_PREF = "dom.ipc.multiOptOut";
const TARGET_URI = "chrome://tabpaint/content/target.html";
@ -72,8 +72,8 @@ var TabPaint = {
this.originalAnimate = Services.prefs.getBoolPref(ANIMATION_PREF);
Services.prefs.setBoolPref(ANIMATION_PREF, false);
this.originalProcessCount = Services.prefs.getIntPref(PROCESS_COUNT_PREF);
Services.prefs.setIntPref(PROCESS_COUNT_PREF, 1);
Services.prefs.setIntPref(MULTI_OPT_OUT_PREF,
Services.appinfo.E10S_MULTI_EXPERIMENT);
},
uninit() {
@ -82,7 +82,7 @@ var TabPaint = {
}
Services.prefs.setBoolPref(ANIMATION_PREF, this.originalAnimate);
Services.prefs.setIntPref(PROCESS_COUNT_PREF, this.originalProcessCount);
Services.prefs.clearUserPref(MULTI_OPT_OUT_PREF);
},
receiveMessage(msg) {