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

[tor-bugs] #31767 [Applications/Tor Browser]: Avoid using intl.locale.requested pref directly



#31767: Avoid using intl.locale.requested pref directly
------------------------------------------+----------------------
     Reporter:  acat                      |      Owner:  tbb-team
         Type:  defect                    |     Status:  new
     Priority:  Medium                    |  Milestone:
    Component:  Applications/Tor Browser  |    Version:
     Severity:  Normal                    |   Keywords:  ff68-esr
Actual Points:                            |  Parent ID:
       Points:                            |   Reviewer:
      Sponsor:                            |
------------------------------------------+----------------------
 We wrongly assume that `intl.locale.requested` contains just a single
 locale, but it's actually a list of locales if more than one language pack
 is installed (which we are allowing for now).

 We should probably use JS API `Services.locale.requestedLocale` and the
 appropriate C++ API (need to check) instead of using
 `intl.locale.requested` value. This affects "torbutton" code and patch for
 #14631.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31767>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs