GV's Accept-Language HTTP header does not reflect the system language settings
Categories
(GeckoView :: General, defect, P1)
Tracking
(firefox66 wontfix, firefox67 wontfix, firefox68 fixed)
People
(Reporter: cpeterson, Assigned: mbrubeck)
References
Details
(Whiteboard: [geckoview:fenix:m5])
Attachments
(1 file)
We should make Gecko's Accept-Language HTTP header automatically detect the system language settings or add a GV API for the app to set the Accept-Language values. Mozilla publishes different Fennec builds for different languages, but we only have one locale-agnostic GV build.
| Reporter | ||
Comment 1•6 years ago
|
||
This language problem was reported in Fenix's issue tracker:
https://github.com/mozilla-mobile/fenix/issues/940
Comment 2•6 years ago
|
||
Accept-language uses Preferences::GetLocalizedCString. Does GV package have all localize data?
Comment 3•6 years ago
|
||
GV will be multi locale package, so https://searchfox.org/mozilla-central/source/mobile/android/chrome/content/browser.js#2165 is Fennec code. we need check intl.accept_languages prefs
| Reporter | ||
Comment 4•6 years ago
|
||
Matt already added a GeckoRuntimeSetting for languages. Can GV just set the intl.accept_languages pref to update Accept-Languages?
Matt said he would investigate.
| Reporter | ||
Comment 5•6 years ago
|
||
See also Fennec bug 1542566 about Accept-Language.
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 6•6 years ago
|
||
Randall says we should make sure this bug is fixed in FxR, too.
James says this bug should be a P0.
Comment 7•6 years ago
|
||
This is P1 for FxR (https://github.com/MozillaReality/FirefoxReality/issues/786)
| Assignee | ||
Comment 8•6 years ago
|
||
| Assignee | ||
Comment 9•6 years ago
|
||
This basic patch sets the Accept-Language header correctly on startup, and updates it when app prefs change. I'm still working on a follow-up patch to update the header when the OS prefs change.
| Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Description
•