summaryrefslogtreecommitdiffstats
path: root/devtools/shared/network-observer
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /devtools/shared/network-observer
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/network-observer')
-rw-r--r--devtools/shared/network-observer/NetworkResponseListener.sys.mjs1
-rw-r--r--devtools/shared/network-observer/NetworkUtils.sys.mjs4
2 files changed, 3 insertions, 2 deletions
diff --git a/devtools/shared/network-observer/NetworkResponseListener.sys.mjs b/devtools/shared/network-observer/NetworkResponseListener.sys.mjs
index 31546203ca..5a31e52536 100644
--- a/devtools/shared/network-observer/NetworkResponseListener.sys.mjs
+++ b/devtools/shared/network-observer/NetworkResponseListener.sys.mjs
@@ -317,6 +317,7 @@ export class NetworkResponseListener {
"br",
"x-gzip",
"x-deflate",
+ "zstd",
];
for (const i in encodings) {
// There can be multiple conversions applied
diff --git a/devtools/shared/network-observer/NetworkUtils.sys.mjs b/devtools/shared/network-observer/NetworkUtils.sys.mjs
index 8a2525e1e7..d51d4ef59c 100644
--- a/devtools/shared/network-observer/NetworkUtils.sys.mjs
+++ b/devtools/shared/network-observer/NetworkUtils.sys.mjs
@@ -90,10 +90,10 @@ function isChannelFromSystemPrincipal(channel) {
// WindowGlobal which is available on the BrowsingContext
if (!principal) {
principal = CanonicalBrowsingContext.isInstance(browsingContext)
- ? browsingContext.currentWindowGlobal.documentPrincipal
+ ? browsingContext.currentWindowGlobal?.documentPrincipal
: browsingContext.window.document.nodePrincipal;
}
- return principal.isSystemPrincipal;
+ return principal?.isSystemPrincipal;
}
/**