From f63fd032b57e6cdf24bfdd4bc90dc0a9f02ac499 Mon Sep 17 00:00:00 2001 From: Nirupam Bhowmick <48842933+heydryft@users.noreply.github.com> Date: Fri, 26 Dec 2025 19:39:49 +0000 Subject: [PATCH] fix: correct network-patches.patch line numbers for Firefox 146 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SetAcceptLanguages hunk: 2094 → 2077, new line 2104 → 2087 - SetAcceptEncodings hunk: 2111 → 2113, new line 2138 → 2121 --- patches/network-patches.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/patches/network-patches.patch b/patches/network-patches.patch index 165ded40..6b345410 100644 --- a/patches/network-patches.patch +++ b/patches/network-patches.patch @@ -38,19 +38,19 @@ index d0aebdf965..01472ec205 100644 if (aShouldResistFingerprinting && !mSpoofedUserAgent.IsEmpty()) { LOG(("using spoofed userAgent : %s\n", mSpoofedUserAgent.get())); return mSpoofedUserAgent; -@@ -2094,6 +2104,10 @@ nsresult nsHttpHandler::SetAcceptLanguages() { +@@ -2077,6 +2087,10 @@ nsresult nsHttpHandler::SetAcceptLanguages() { } - + MOZ_ASSERT(NS_IsMainThread()); + if (auto value = MaskConfig::GetString("headers.Accept-Language")) { + mAcceptLanguages.Assign(nsCString(value.value().c_str())); + return NS_OK; + } - + mAcceptLanguagesIsDirty = false; - -@@ -2099,8 +2126,12 @@ nsresult nsHttpHandler::SetAcceptLanguages() { - + +@@ -2113,8 +2121,12 @@ nsresult nsHttpHandler::SetAcceptLanguages() { + nsresult nsHttpHandler::SetAcceptEncodings(const char* aAcceptEncodings, bool isSecure, bool isDictionary) { + if (auto value = MaskConfig::GetString("headers.Accept-Encoding")) {