forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure navigator.language agrees with navigator.languages
Although perhaps not strictly required by the specification, it is at least quite clearly suggested that navigator.language should equal the first element of navigator.languages (see note in [1]). [1]: https://html.spec.whatwg.org/multipage/system-state.html#language-preferences Changes in behavior: - navigator.language: Previously returned DefaultLanguage() which may or may not have matched the first element of navigator.languages. Now always returns the first element from navigator.languages. - navigator.languages: Previously would return an empty list if ChromeClient's AcceptLanguages() happened to return an empty string. Now always returns a non-empty list (the existing DefaultLanguage() fallback is extended to cover this case too). Bug: 351715 Change-Id: Id945ec3958180991c0abcfec4e5c191d3cb5e9cf Reviewed-on: https://chromium-review.googlesource.com/581295 Commit-Queue: Mounir Lamouri <mlamouri@chromium.org> Reviewed-by: David Bokan <bokan@chromium.org> Reviewed-by: Mounir Lamouri <mlamouri@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#521394}
- Loading branch information
Showing
5 changed files
with
21 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...appapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters