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•5 years ago
|
||
This language problem was reported in Fenix's issue tracker:
https://github.com/mozilla-mobile/fenix/issues/940
Comment 2•5 years ago
|
||
Accept-language
uses Preferences::GetLocalizedCString
. Does GV package have all localize data?
Comment 3•5 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•5 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•5 years ago
|
||
See also Fennec bug 1542566 about Accept-Language.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 6•5 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•5 years ago
|
||
This is P1 for FxR (https://github.com/MozillaReality/FirefoxReality/issues/786)
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 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•5 years ago
|
||
Comment 11•5 years ago
|
||
Pushed by mbrubeck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/357afb475968 Compute Accept-Language header based on app and OS prefs. r=snorp
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•