mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2f6bb59008
--HG-- extra : rebase_source : 27abb29f16e071a7c08220d46f9cbef4ded08fc4
15 lines
661 B
JavaScript
15 lines
661 B
JavaScript
// enable crash reporting first
|
|
let cwd = Components.classes["@mozilla.org/file/directory_service;1"]
|
|
.getService(Components.interfaces.nsIProperties)
|
|
.get("CurWorkD", Components.interfaces.nsILocalFile);
|
|
let crashReporter =
|
|
Components.classes["@mozilla.org/toolkit/crash-reporter;1"]
|
|
.getService(Components.interfaces.nsICrashReporter);
|
|
crashReporter.enabled = true;
|
|
crashReporter.minidumpPath = cwd;
|
|
let cd = cwd.clone();
|
|
cd.append("components");
|
|
Components.manager instanceof Components.interfaces.nsIComponentRegistrar;
|
|
Components.manager.autoRegister(cd);
|
|
let crashType = Components.interfaces.nsITestCrasher.CRASH_INVALID_POINTER_DEREF;
|