Issue metadata
Sign in to add a comment
|
navigator.language not working as before in version 65
Reported by
b.sundee...@gmail.com,
Mar 27 2018
|
||||||||||||||||||||||||
Issue description
Chrome Version : 65.0.3325.181
OS Version: 10.0
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari:
Firefox:
IE/Edge:
What steps will reproduce the problem?
1. Go to settings.
2. Click on Advanced in the side bar.
3. Click on Languages.
4. Assume that your current language is en-us and also first in the list.
5. Add a language for example french.
6. Right click on the language, and check "Display google chrome in this language option".
7. Relaunch the browser.
8. Now, open any tab in browser.
9. Click on f12, and in console tab, try to get the value for navigator.language.
10. It still shows en instead of fr.
We use this setting and navigator.language value to determine browser language.
Previously in version 64,
navigator.language used to give the the language which has the setting "Display google chrome in this language" checked on.
What is the expected result?
It must return navigator.language value as the language that has "Display google chrome in this language" checked on.
What happens instead of that?
Currently, in version 65, navigator.language gives the language which is first in the list of languages present in settings page.
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
,
Mar 27 2018
,
Mar 28 2018
Able to reproduce this issue reported version 65.0.3325.181, on latest beta 66.0.3359.45 and on latest canary 67.0.3382.0 using Windows 10, Mac 10.13.3 and Ubuntu 14.04. Good Build:65.0.3284.0 Bad Build:65.0.3285.0 Suspecting https://chromium-review.googlesource.com/581295 from above changelog. @juri.valdmann: Please confirm whether this is a bug or intended behavior. Adding RB-Stable for M-65. Please change if not the case. Unable to assign to as he is not a project member. Hence assigning to reviewer bokan@. Thanks!
,
Mar 28 2018
#1 is correct, this is intentional.
,
Mar 29 2018
Thank you for the detailed inputs. Going by the comments, if that's the intended behavior, is their any other way to retrieve the language that has "Display google chrome in this language" turned on ? navigator.language is giving first item in the list. navigator.languages gives all the list of languages. What's the way to get the language that has this setting turned on ? Please suggest. it would be really helpful, thanks in advance.
,
Aug 7
Is there any update on this? I want to get the selected language of browser but navigator.language is always returning item which is on 0 index of navigator.languages array. Thanks.
,
Aug 7
Re#6: This is now intended behavior. See https://bugs.chromium.org/p/chromium/issues/detail?id=795680#c6 for explanation. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Mar 27 2018