diff options
Diffstat (limited to 'toolkit/crashreporter/test/unit/crasher_subprocess_tail.js')
-rw-r--r-- | toolkit/crashreporter/test/unit/crasher_subprocess_tail.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/toolkit/crashreporter/test/unit/crasher_subprocess_tail.js b/toolkit/crashreporter/test/unit/crasher_subprocess_tail.js deleted file mode 100644 index 8b4dd2b79..000000000 --- a/toolkit/crashreporter/test/unit/crasher_subprocess_tail.js +++ /dev/null @@ -1,15 +0,0 @@ -// Let the event loop process a bit before crashing. -if (shouldDelay) { - let shouldCrashNow = false; - let thr = Components.classes["@mozilla.org/thread-manager;1"] - .getService().currentThread; - thr.dispatch({ run: () => { shouldCrashNow = true; } }, - Components.interfaces.nsIThread.DISPATCH_NORMAL); - - while (!shouldCrashNow) { - thr.processNextEvent(true); - } -} - -// now actually crash -CrashTestUtils.crash(crashType); |