mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b164ed30f3
commit
2a03b84fa5
@ -77,8 +77,15 @@ 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;
|
||||
|
||||
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) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user