mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Remove base conditional code for crash reporter and injector.
This commit is contained in:
parent
87fa26d31e
commit
434f3590e3
131 changed files with 39 additions and 4139 deletions
|
|
@ -21,10 +21,6 @@
|
|||
extern unsigned int _gdb_sleep_duration;
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
#include "nsICrashReporter.h"
|
||||
#endif
|
||||
|
||||
// We can test that certain operations cause expected aborts by forking
|
||||
// and then checking that the child aborted in the expected way (i.e. via
|
||||
// MOZ_CRASH). We skip this for the following configurations.
|
||||
|
|
@ -46,17 +42,6 @@ TestCrashyOperation(void (*aCrashyOperation)())
|
|||
ASSERT_NE(pid, -1);
|
||||
|
||||
if (pid == 0) {
|
||||
// Disable the crashreporter -- writing a crash dump in the child will
|
||||
// prevent the parent from writing a subsequent dump. Crashes here are
|
||||
// expected, so we don't want their stacks to show up in the log anyway.
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
nsCOMPtr<nsICrashReporter> crashreporter =
|
||||
do_GetService("@mozilla.org/toolkit/crash-reporter;1");
|
||||
if (crashreporter) {
|
||||
crashreporter->SetEnabled(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Child: perform the crashy operation.
|
||||
fprintf(stderr, "TestCrashyOperation: The following crash is expected. Do not panic.\n");
|
||||
aCrashyOperation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue