зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1312022
- Keep alive content processes on bc and dt. r=mrbkap
This commit is contained in:
Родитель
22a574219b
Коммит
64e1070774
|
@ -104,6 +104,14 @@ function testInit() {
|
|||
}
|
||||
if (gConfig.e10s) {
|
||||
e10s_init();
|
||||
|
||||
let processCount = prefs.getIntPref("dom.ipc.processCount", 1);
|
||||
if (processCount > 1) {
|
||||
// Currently starting a content process is slow, to aviod timeouts, let's
|
||||
// keep alive content processes.
|
||||
prefs.setIntPref("dom.ipc.keepProcessesAlive", processCount);
|
||||
}
|
||||
|
||||
let globalMM = Cc["@mozilla.org/globalmessagemanager;1"]
|
||||
.getService(Ci.nsIMessageListenerManager);
|
||||
globalMM.loadFrameScript("chrome://mochikit/content/shutdown-leaks-collector.js", true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче