[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.26.0esr-13.5-1] Bug 43912: Make xslt:sort obey spoof English.



Title: GitLab

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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx