diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /devtools/shared/network-observer | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-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.mjs | 1 | ||||
-rw-r--r-- | devtools/shared/network-observer/NetworkUtils.sys.mjs | 4 |
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; } /** |