diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /devtools/shared/network-observer | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 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; } /** |