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

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Sep 17 11:28:55 UTC 2019


#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


More information about the tbb-bugs mailing list