summaryrefslogtreecommitdiffstats
path: root/remote/cdp/observers
diff options
context:
space:
mode:
Diffstat (limited to 'remote/cdp/observers')
-rw-r--r--remote/cdp/observers/ContextObserver.sys.mjs2
-rw-r--r--remote/cdp/observers/NetworkObserver.sys.mjs4
2 files changed, 3 insertions, 3 deletions
diff --git a/remote/cdp/observers/ContextObserver.sys.mjs b/remote/cdp/observers/ContextObserver.sys.mjs
index d0d6fd1f93..14ad98108f 100644
--- a/remote/cdp/observers/ContextObserver.sys.mjs
+++ b/remote/cdp/observers/ContextObserver.sys.mjs
@@ -121,7 +121,7 @@ export class ContextObserver {
}
}
- observe(subject, topic, data) {
+ observe(subject, topic) {
switch (topic) {
case "document-element-inserted":
const window = subject.defaultView;
diff --git a/remote/cdp/observers/NetworkObserver.sys.mjs b/remote/cdp/observers/NetworkObserver.sys.mjs
index ffd8028ba7..10d5ba4588 100644
--- a/remote/cdp/observers/NetworkObserver.sys.mjs
+++ b/remote/cdp/observers/NetworkObserver.sys.mjs
@@ -186,7 +186,7 @@ export class NetworkObserver {
this._redirectMap.set(newChannel, oldChannel);
}
- _onRequest(channel, topic) {
+ _onRequest(channel) {
const httpChannel = channel.QueryInterface(Ci.nsIHttpChannel);
const loadContext = getLoadContext(httpChannel);
const browser = loadContext?.topFrameElement;
@@ -242,7 +242,7 @@ export class NetworkObserver {
});
}
- _onResponse(fromCache, httpChannel, topic) {
+ _onResponse(fromCache, httpChannel) {
const loadContext = getLoadContext(httpChannel);
if (
!loadContext ||