accept-language format should be language-region like Chrome/Android
Categories
(GeckoView :: General, defect, P2)
Tracking
(relnote-firefox 125+, firefox125 fixed)
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
Attachments
(1 file)
Chrome's accept-language header is language-region format of BCP47. But GeckoView is language-script-region on Android 13.
We should be same format.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Comment 2•1 years ago
|
||
The severity field is not set for this bug.
:boek, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 years ago
|
Comment 3•1 years ago
|
||
I'm not entirely sure yet, but I wonder if this could impact Translations on Android too?
It looks like translations may use the Accept-Language
for getting the recommended "translate to" language: TranslationsParent.getWebContentLanguages()
(Only took a quick look to see if it could be relevant, this may need additional investigation. I'll link it to the Android translations meta to look at further.)
Updated•1 years ago
|
Assignee | ||
Comment 5•1 year ago
|
||
As spec (RFC 7231), accept-language can accept language tag (BCP 47).
Currently, Firefox Android uses Locale.toLanguageTag
API. But it may
append variant and extensions etc.
But Chrome/Android and desktop browser use <language>-<region> format for
this header, so we should use same format for compatibility.
Comment 7•11 months ago
|
||
bugherder |
Comment 8•11 months ago
|
||
Is this something we should call out in the Fx125 relnotes? Please nominate by setting the relnote-firefox
flag to ?
if yes.
Assignee | ||
Comment 9•11 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
Accept-Language format of HTTP request is changed on Firefox 125 for Android. Until 124, Firefox may add variant, extension and etc such en-US-u-fw-mon-mu-celsius
.
[Suggested wording]:
Accept-Language header of HTTP request doesn't include variant and extension of BCP47. Until Firefox 124, it may had variant, extension etc such en-US-u-fw-mon-mu-celsius
.
Comment 10•11 months ago
|
||
Added to the Fx125 relnotes with the language below. Let me know if the wording needs any adjusting.
Firefox for Android no longer includes the variant and extension of BCP47 in the Accept-Language header of HTTP requests for better interoperability with other browsers.
Updated•9 months ago
|
Description
•