summaryrefslogtreecommitdiffstats
path: root/remote/shared/listeners/NetworkListener.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /remote/shared/listeners/NetworkListener.sys.mjs
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'remote/shared/listeners/NetworkListener.sys.mjs')
-rw-r--r--remote/shared/listeners/NetworkListener.sys.mjs11
1 files changed, 9 insertions, 2 deletions
diff --git a/remote/shared/listeners/NetworkListener.sys.mjs b/remote/shared/listeners/NetworkListener.sys.mjs
index 500d2005dc..d0d6d0e44f 100644
--- a/remote/shared/listeners/NetworkListener.sys.mjs
+++ b/remote/shared/listeners/NetworkListener.sys.mjs
@@ -44,11 +44,13 @@ ChromeUtils.defineESModuleGetters(lazy, {
export class NetworkListener {
#devtoolsNetworkObserver;
#listening;
+ #navigationManager;
- constructor() {
+ constructor(navigationManager) {
lazy.EventEmitter.decorate(this);
this.#listening = false;
+ this.#navigationManager = navigationManager;
}
destroy() {
@@ -104,6 +106,11 @@ export class NetworkListener {
};
#onNetworkEvent = (networkEvent, channel) => {
- return new lazy.NetworkEventRecord(networkEvent, channel, this);
+ return new lazy.NetworkEventRecord(
+ networkEvent,
+ channel,
+ this,
+ this.#navigationManager
+ );
};
}