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:
Benjamin Smedberg 2010-07-01 16:03:42 -04:00
parent b164ed30f3
commit 2a03b84fa5

View File

@ -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) { }
}
}