mirror of
https://github.com/daijro/camoufox.git
synced 2026-10-29 16:05:58 +00:00
fix: correct network-patches.patch line numbers for Firefox 146
- SetAcceptLanguages hunk: 2094 → 2077, new line 2104 → 2087 - SetAcceptEncodings hunk: 2111 → 2113, new line 2138 → 2121
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user