mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-01 12: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
|
|
@ -183,13 +183,6 @@ this.AppConstants = Object.freeze({
|
|||
Services.vc.compare(platformVersion, version) <= 0;
|
||||
},
|
||||
|
||||
MOZ_CRASHREPORTER:
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
true,
|
||||
#else
|
||||
false,
|
||||
#endif
|
||||
|
||||
MOZ_VERIFY_MAR_SIGNATURE:
|
||||
#ifdef MOZ_VERIFY_MAR_SIGNATURE
|
||||
true,
|
||||
|
|
|
|||
|
|
@ -39,15 +39,6 @@ XPCOMUtils.defineLazyGetter(Services, "dirsvc", function () {
|
|||
.QueryInterface(Ci.nsIProperties);
|
||||
});
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
XPCOMUtils.defineLazyGetter(Services, "crashmanager", () => {
|
||||
let ns = {};
|
||||
Components.utils.import("resource://gre/modules/CrashManager.jsm", ns);
|
||||
|
||||
return ns.CrashManager.Singleton;
|
||||
});
|
||||
#endif
|
||||
|
||||
XPCOMUtils.defineLazyGetter(Services, "mm", () => {
|
||||
return Cc["@mozilla.org/globalmessagemanager;1"]
|
||||
.getService(Ci.nsIMessageBroadcaster)
|
||||
|
|
|
|||
|
|
@ -549,19 +549,6 @@ var dataProviders = {
|
|||
}
|
||||
};
|
||||
|
||||
if (AppConstants.MOZ_CRASHREPORTER) {
|
||||
dataProviders.crashes = function crashes(done) {
|
||||
let CrashReports = Cu.import("resource://gre/modules/CrashReports.jsm").CrashReports;
|
||||
let reports = CrashReports.getReports();
|
||||
let now = new Date();
|
||||
let reportsNew = reports.filter(report => (now - report.date < Troubleshoot.kMaxCrashAge));
|
||||
let reportsSubmitted = reportsNew.filter(report => (!report.pending));
|
||||
let reportsPendingCount = reportsNew.length - reportsSubmitted.length;
|
||||
let data = {submitted : reportsSubmitted, pending : reportsPendingCount};
|
||||
done(data);
|
||||
}
|
||||
}
|
||||
|
||||
if (AppConstants.MOZ_SANDBOX) {
|
||||
dataProviders.sandbox = function sandbox(done) {
|
||||
let data = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue