Pier Angelo Vendrame pushed to branch tor-browser-115.26.0esr-13.5-1 at The Tor 
Project / Applications / Tor Browser


Commits:
5e052e8c by Pier Angelo Vendrame at 2025-08-05T16:32:16+02:00
Bug 43912: Make xslt:sort obey spoof English.

- - - - -


1 changed file:

- dom/xslt/xslt/txNodeSorter.cpp


Changes:

=====================================
dom/xslt/xslt/txNodeSorter.cpp
=====================================
@@ -76,6 +76,9 @@ nsresult txNodeSorter::addSortElement(Expr* aSelectExpr, 
Expr* aLangExpr,
       rv = aLangExpr->evaluateToString(aContext, lang);
       NS_ENSURE_SUCCESS(rv, rv);
     }
+    if (lang.IsEmpty() && nsContentUtils::SpoofLocaleEnglish()) {
+      lang.AssignLiteral("en-US");
+    }
 
     // Case-order
     bool upperFirst = false;



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5e052e8c23add2a727002fa5562ed350cfb153b1

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5e052e8c23add2a727002fa5562ed350cfb153b1
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- tbb-commits@lists.torproject.org
To unsubscribe send an email to tbb-commits-le...@lists.torproject.org

Reply via email to