Opened 11 months ago

Last modified 2 months ago

#31767 new defect

Avoid using intl.locale.requested pref directly

Reported by: acat Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: ff78-esr
Cc: intrigeri 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.

Child Tickets

Change History (2)

comment:1 Changed 10 months ago by intrigeri

Cc: intrigeri added

comment:2 Changed 2 months ago by gk

Keywords: ff78-esr added; ff68-esr removed

Putting this on our ESR 78 radar. It makes me actually a bit nervous that we are *not* doing that already...

Note: See TracTickets for help on using tickets.