2009-09-10 04:49:42 -07:00
|
|
|
// 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;
|
2010-06-30 09:42:24 -07:00
|
|
|
let cd = cwd.clone();
|
|
|
|
cd.append("components");
|
|
|
|
Components.manager instanceof Components.interfaces.nsIComponentRegistrar;
|
|
|
|
Components.manager.autoRegister(cd);
|
2010-05-04 12:34:55 -07:00
|
|
|
let crashType = Components.interfaces.nsITestCrasher.CRASH_INVALID_POINTER_DEREF;
|