New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 616965 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 593515
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Accept-Language HTTP header values should come from the OS language preference on Android "N"

Project Member Reported by js...@chromium.org, Jun 3 2016

Issue description

Android N (preview) has the ordered list of language preference.  In the past, there's only one language (UI language). 

Chrome on Android should populate Accept-Language HTTP header fields with the list taken from the OS instead of the values taken from the preference. 

Or, the preference for the A-L should be populated by getting the list from the OS. I'm not sure where 'preference' handling belongs (component). 

Internals>Network>HTTP is not really a good fit because it just gets the list from Chrome and send A-L header to the server. 


In Blink, navigator.languages[] (plural) should reflect that, too. I can't find a suitable component for this one. 


BTW, do we need R-V-G for this issue? Android N preview is already out to the public, isn't it? 
 

Comment 1 by js...@chromium.org, Aug 25 2016

Cc: mihai@chromium.org
Labels: -Restrict-View-Google
We really should do this. Removing 'Restrict-View-Google' because N is public. 

Comment 2 by js...@chromium.org, Aug 25 2016

Cc: roozbeh@chromium.org
Mihai and Roozbeh, there is an API to retrieve the ordered list of languages? (I may have asked this question before, but I forgot the answer). 

Comment 3 by roozbeh@google.com, Aug 25 2016

android.os.LocaleList.getDefault() and .getAdjustedDefault(), depending on what you need.

Comment 4 by js...@chromium.org, Aug 26 2016

Cc: jrp@chromium.org egm@chromium.org groby@chromium.org ftang@chromium.org lswartz@google.com
Labels: -Pri-3 Pri-2
Thanks, Roozbeh !

Adding a few folks and bumping up Priority to 2. 

Comment 5 by nona@chromium.org, Aug 26 2016

Mergedinto: 593515
Status: Duplicate (was: Untriaged)
Let me mark as dup of my issue. This is now blocked by SDK roll ( issue 623989 ).
Components: Internals>Network
Components: -Internals>Network>HTTP

Sign in to add a comment