summaryrefslogtreecommitdiffstats
path: root/toolkit/components/crashes
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/crashes')
-rw-r--r--toolkit/components/crashes/CrashService.sys.mjs4
-rw-r--r--toolkit/components/crashes/tests/xpcshell/test_crash_manager.js2
-rw-r--r--toolkit/components/crashes/tests/xpcshell/test_crash_service.js2
-rw-r--r--toolkit/components/crashes/tests/xpcshell/test_crash_store.js4
4 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/components/crashes/CrashService.sys.mjs b/toolkit/components/crashes/CrashService.sys.mjs
index cedbca53b9..3634327b2e 100644
--- a/toolkit/components/crashes/CrashService.sys.mjs
+++ b/toolkit/components/crashes/CrashService.sys.mjs
@@ -66,7 +66,7 @@ function runMinidumpAnalyzer(minidumpPath, allThreads) {
args.unshift("--full");
}
- process.runAsync(args, args.length, (subject, topic, data) => {
+ process.runAsync(args, args.length, (subject, topic) => {
switch (topic) {
case "process-finished":
gRunningProcesses.delete(process);
@@ -211,7 +211,7 @@ CrashService.prototype = Object.freeze({
await blocker;
},
- observe(subject, topic, data) {
+ observe(subject, topic) {
switch (topic) {
case "profile-after-change":
// Side-effect is the singleton is instantiated.
diff --git a/toolkit/components/crashes/tests/xpcshell/test_crash_manager.js b/toolkit/components/crashes/tests/xpcshell/test_crash_manager.js
index 2f77ea5105..e776b8f87a 100644
--- a/toolkit/components/crashes/tests/xpcshell/test_crash_manager.js
+++ b/toolkit/components/crashes/tests/xpcshell/test_crash_manager.js
@@ -824,7 +824,7 @@ add_task(async function test_glean_crash_ping() {
// Test with additional fields
submitted = false;
- GleanPings.crash.testBeforeNextSubmit(reason => {
+ GleanPings.crash.testBeforeNextSubmit(() => {
submitted = true;
const MINUTES = new Date(DUMMY_DATE_2);
MINUTES.setSeconds(0);
diff --git a/toolkit/components/crashes/tests/xpcshell/test_crash_service.js b/toolkit/components/crashes/tests/xpcshell/test_crash_service.js
index 63ff3343d6..6648230785 100644
--- a/toolkit/components/crashes/tests/xpcshell/test_crash_service.js
+++ b/toolkit/components/crashes/tests/xpcshell/test_crash_service.js
@@ -170,7 +170,7 @@ add_task(async function test_addCrash_quitting() {
await setup(firstCrashId);
let minidumpAnalyzerKilledPromise = new Promise((resolve, reject) => {
- Services.obs.addObserver((subject, topic, data) => {
+ Services.obs.addObserver((subject, topic) => {
if (topic === "test-minidump-analyzer-killed") {
resolve();
}
diff --git a/toolkit/components/crashes/tests/xpcshell/test_crash_store.js b/toolkit/components/crashes/tests/xpcshell/test_crash_store.js
index 515aec86a0..3690c13922 100644
--- a/toolkit/components/crashes/tests/xpcshell/test_crash_store.js
+++ b/toolkit/components/crashes/tests/xpcshell/test_crash_store.js
@@ -2,7 +2,7 @@
* http://creativecommons.org/publicdomain/zero/1.0/ */
/*
- * This file tests the CrashStore type in CrashManager.jsm.
+ * This file tests the CrashStore type in CrashManager.sys.mjs.
*/
"use strict";
@@ -257,7 +257,7 @@ add_task(async function test_add_mixed_types() {
allAdd &&
s.addCrash(ptName, CRASH_TYPE_CRASH, ptName + "crash", new Date());
},
- (_, ptName) => {
+ _ => {
allAdd =
allAdd &&
s.addCrash(