Pier Angelo Vendrame pushed to branch tor-browser-140.1.0esr-15.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
17f8c468
by Pier Angelo Vendrame at 2025-08-05T16:48:25+02:00
1 changed file:
Changes:
... | ... | @@ -77,9 +77,10 @@ nsresult txNodeSorter::addSortElement(Expr* aSelectExpr, Expr* aLangExpr, |
77 | 77 | if (aLangExpr) {
|
78 | 78 | rv = aLangExpr->evaluateToString(aContext, lang);
|
79 | 79 | NS_ENSURE_SUCCESS(rv, rv);
|
80 | - } else if (aContext->getContextNode()
|
|
81 | - .OwnerDoc()
|
|
82 | - ->ShouldResistFingerprinting(RFPTarget::JSLocale)) {
|
|
80 | + }
|
|
81 | + if (lang.IsEmpty() &&
|
|
82 | + aContext->getContextNode().OwnerDoc()->ShouldResistFingerprinting(
|
|
83 | + RFPTarget::JSLocale)) {
|
|
83 | 84 | CopyUTF8toUTF16(nsRFPService::GetSpoofedJSLocale(), lang);
|
84 | 85 | }
|
85 | 86 |