summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/amWebAPI.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /toolkit/mozapps/extensions/amWebAPI.sys.mjs
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/mozapps/extensions/amWebAPI.sys.mjs')
-rw-r--r--toolkit/mozapps/extensions/amWebAPI.sys.mjs6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/mozapps/extensions/amWebAPI.sys.mjs b/toolkit/mozapps/extensions/amWebAPI.sys.mjs
index abe838af89..ae1b94cac7 100644
--- a/toolkit/mozapps/extensions/amWebAPI.sys.mjs
+++ b/toolkit/mozapps/extensions/amWebAPI.sys.mjs
@@ -214,7 +214,7 @@ export class WebAPI extends APIObject {
super.init(window, broker, {});
- window.addEventListener("unload", event => {
+ window.addEventListener("unload", () => {
this.broker.sendCleanup(this.allInstalls);
});
}
@@ -263,7 +263,7 @@ export class WebAPI extends APIObject {
return lazy.AMO_ABUSEREPORT;
}
- eventListenerAdded(type) {
+ eventListenerAdded() {
if (this.listenerCount == 0) {
this.broker.setAddonListener(data => {
let event = new this.window.AddonEvent(data.event, data);
@@ -273,7 +273,7 @@ export class WebAPI extends APIObject {
this.listenerCount++;
}
- eventListenerRemoved(type) {
+ eventListenerRemoved() {
this.listenerCount--;
if (this.listenerCount == 0) {
this.broker.setAddonListener(null);