зеркало из https://github.com/mozilla/gecko-dev.git
Bug 576206 - hangs in necko unit tests on Windows because the content process is crashing, bandaid patch r=Mossop for landing into a CLOSED TREE
--HG-- extra : rebase_source : 7ee40a702c86acc3cc3872954a989b935cd0bec4
This commit is contained in:
Родитель
8391bd98eb
Коммит
4b29191430
|
@ -77,7 +77,14 @@ if ("@mozilla.org/toolkit/crash-reporter;1" in Components.classes) {
|
|||
Components.classes["@mozilla.org/toolkit/crash-reporter;1"]
|
||||
.getService(Components.interfaces.nsICrashReporter)) {
|
||||
crashReporter.enabled = true;
|
||||
crashReporter.minidumpPath = do_get_cwd();
|
||||
|
||||
try { // nsIXULRuntime is not available in some configurations.
|
||||
let processType = Components.classes["@mozilla.org/xre/runtime;1"].
|
||||
getService(Components.interfaces.nsIXULRuntime).processType;
|
||||
if (Components.interfaces.nsIXULRuntime.PROCESS_TYPE_DEFAULT == processType)
|
||||
crashReporter.minidumpPath = do_get_cwd();
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче