diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:12:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:12:12 +0000 |
commit | a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431 (patch) | |
tree | 54617b4f5f04ee87a2c9e3b97cc88b8626859124 /netwerk/streamconv/converters | |
parent | Releasing progress-linux version 115.7.0esr-1~deb12u1progress7u1. (diff) | |
download | firefox-esr-a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431.tar.xz firefox-esr-a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431.zip |
Merging upstream version 115.8.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'netwerk/streamconv/converters')
-rw-r--r-- | netwerk/streamconv/converters/nsMultiMixedConv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netwerk/streamconv/converters/nsMultiMixedConv.cpp b/netwerk/streamconv/converters/nsMultiMixedConv.cpp index 54e57e41b4..6b2ec51be4 100644 --- a/netwerk/streamconv/converters/nsMultiMixedConv.cpp +++ b/netwerk/streamconv/converters/nsMultiMixedConv.cpp @@ -21,6 +21,7 @@ #include "mozilla/AutoRestore.h" #include "mozilla/Tokenizer.h" #include "nsComponentManagerUtils.h" +#include "mozilla/StaticPrefs_network.h" using namespace mozilla; @@ -977,7 +978,8 @@ nsresult nsMultiMixedConv::ProcessHeader() { nsCOMPtr<nsIHttpChannelInternal> httpInternal = do_QueryInterface(mChannel); mResponseHeaderValue.CompressWhitespace(); - if (httpInternal) { + if (!StaticPrefs::network_cookie_prevent_set_cookie_from_multipart() && + httpInternal) { DebugOnly<nsresult> rv = httpInternal->SetCookie(mResponseHeaderValue); MOZ_ASSERT(NS_SUCCEEDED(rv)); } |