summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/MessageChannel.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/MessageChannel.sys.mjs')
-rw-r--r--toolkit/components/extensions/MessageChannel.sys.mjs10
1 files changed, 4 insertions, 6 deletions
diff --git a/toolkit/components/extensions/MessageChannel.sys.mjs b/toolkit/components/extensions/MessageChannel.sys.mjs
index 65ab2720aa..90ad301402 100644
--- a/toolkit/components/extensions/MessageChannel.sys.mjs
+++ b/toolkit/components/extensions/MessageChannel.sys.mjs
@@ -322,10 +322,8 @@ class ResponseManager extends FilteringMessageManager {
/**
* Called when the event queue is idle, and dispatches any pending
* low-priority messages in a single chunk.
- *
- * @param {IdleDeadline} deadline
*/
- onIdle(deadline) {
+ onIdle() {
this.idleScheduled = false;
let messages = this.idleMessages;
@@ -370,7 +368,7 @@ class ResponseManager extends FilteringMessageManager {
this.callback(this.handlers.get(data.messageName), data);
}
- *getHandlers(messageName, sender, recipient) {
+ *getHandlers(messageName) {
let handler = this.handlers.get(messageName);
if (handler) {
yield handler;
@@ -454,7 +452,7 @@ class FilteringMessageManagerMap extends Map {
// XXXbz if target is really known to be a MessageListenerManager,
// do we need this isInstance check?
if (EventTarget.isInstance(target)) {
- let onUnload = event => {
+ let onUnload = () => {
target.removeEventListener("unload", onUnload);
this.delete(target);
};
@@ -1148,7 +1146,7 @@ MessageChannel = {
}
},
- observe(subject, topic, data) {
+ observe(subject, topic) {
switch (topic) {
case "message-manager-close":
case "message-manager-disconnect":