summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-12-04 12:52:44 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-03-30 20:53:10 +0200
commiteac3e641110ce26cae69a53bb5920c6d725392ec (patch)
tree1eea3d4bb5c314b167443a570ba8436c90889a45
parent473fb65d336d9d0e49c7e7466df3dce11a766e8f (diff)
downloadUXP-eac3e641110ce26cae69a53bb5920c6d725392ec.tar
UXP-eac3e641110ce26cae69a53bb5920c6d725392ec.tar.gz
UXP-eac3e641110ce26cae69a53bb5920c6d725392ec.tar.lz
UXP-eac3e641110ce26cae69a53bb5920c6d725392ec.tar.xz
UXP-eac3e641110ce26cae69a53bb5920c6d725392ec.zip
Stop trying to configure nonexistent crashreporter services.
-rw-r--r--mobile/android/tests/browser/robocop/robocop_head.js17
-rw-r--r--testing/xpcshell/head.js17
2 files changed, 0 insertions, 34 deletions
diff --git a/mobile/android/tests/browser/robocop/robocop_head.js b/mobile/android/tests/browser/robocop/robocop_head.js
index 3db3bb346..c9e1383f2 100644
--- a/mobile/android/tests/browser/robocop/robocop_head.js
+++ b/mobile/android/tests/browser/robocop/robocop_head.js
@@ -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,
diff --git a/testing/xpcshell/head.js b/testing/xpcshell/head.js
index 74fd482cf..e204a4512 100644
--- a/testing/xpcshell/head.js
+++ b/testing/xpcshell/head.js
@@ -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 {