mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Stop trying to configure nonexistent crashreporter services.
This commit is contained in:
parent
b77496b276
commit
bb751d3fc3
2 changed files with 0 additions and 34 deletions
|
|
@ -69,23 +69,6 @@ try {
|
|||
}
|
||||
catch (e) { }
|
||||
|
||||
// Enable crash reporting, if possible
|
||||
// Note that if we're in a child process, we don't want to init the
|
||||
// crashreporter component.
|
||||
try { // nsIXULRuntime is not available in some configurations.
|
||||
if (runningInParent &&
|
||||
"@mozilla.org/toolkit/crash-reporter;1" in Components.classes) {
|
||||
// Remember to update </toolkit/crashreporter/test/unit/test_crashreporter.js>
|
||||
// too if you change this initial setting.
|
||||
let crashReporter =
|
||||
Components.classes["@mozilla.org/toolkit/crash-reporter;1"]
|
||||
.getService(Components.interfaces.nsICrashReporter);
|
||||
crashReporter.enabled = true;
|
||||
crashReporter.minidumpPath = do_get_cwd();
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
|
||||
/**
|
||||
* Date.now() is not necessarily monotonically increasing (insert sob story
|
||||
* about times not being the right tool to use for measuring intervals of time,
|
||||
|
|
|
|||
|
|
@ -95,23 +95,6 @@ try {
|
|||
}
|
||||
catch (e) { }
|
||||
|
||||
// Configure crash reporting, if possible
|
||||
// We rely on the Python harness to set MOZ_CRASHREPORTER,
|
||||
// MOZ_CRASHREPORTER_NO_REPORT, and handle checking for minidumps.
|
||||
// Note that if we're in a child process, we don't want to init the
|
||||
// crashreporter component.
|
||||
try {
|
||||
if (runningInParent &&
|
||||
"@mozilla.org/toolkit/crash-reporter;1" in Components.classes) {
|
||||
let crashReporter =
|
||||
Components.classes["@mozilla.org/toolkit/crash-reporter;1"]
|
||||
.getService(Components.interfaces.nsICrashReporter);
|
||||
crashReporter.UpdateCrashEventsDir();
|
||||
crashReporter.minidumpPath = do_get_minidumpdir();
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
|
||||
// Configure a console listener so messages sent to it are logged as part
|
||||
// of the test.
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue