mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 15:57:31 +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
|
|
@ -851,9 +851,6 @@ this.BrowserTestUtils = {
|
|||
crashBrowser: Task.async(function*(browser, shouldShowTabCrashPage=true) {
|
||||
let extra = {};
|
||||
let KeyValueParser = {};
|
||||
if (AppConstants.MOZ_CRASHREPORTER) {
|
||||
Cu.import("resource://gre/modules/KeyValueParser.jsm", KeyValueParser);
|
||||
}
|
||||
|
||||
if (!browser.isRemoteBrowser) {
|
||||
throw new Error("<xul:browser> needs to be remote in order to crash");
|
||||
|
|
@ -938,11 +935,7 @@ this.BrowserTestUtils = {
|
|||
extrafile.append(dumpID + '.extra');
|
||||
if (extrafile.exists()) {
|
||||
dump(`\nNo .extra file for dumpID: ${dumpID}\n`);
|
||||
if (AppConstants.MOZ_CRASHREPORTER) {
|
||||
extra = KeyValueParser.parseKeyValuePairsFromFile(extrafile);
|
||||
} else {
|
||||
dump('\nCrashReporter not enabled - will not return any extra data\n');
|
||||
}
|
||||
dump('\nWill not return any extra data\n');
|
||||
}
|
||||
|
||||
removeFile(minidumpDirectory, dumpID + '.dmp');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue