Skip to content

chrome: accept_language_list is not reflected in navigator.language #3579

@magreenblatt

Description

@magreenblatt

Describe the bug
Run cefclient.exe --enable-chrome-runtime --lang=en --url=file:///C:/temp/lang.html with the below "lang.html" contents.

<html><body>
<div id="val"/>
<script>document.getElementById('val').innerHTML = navigator.language;</script>
</body></html>

Expected behavior
The page should display "en". Instead, it displays "en-US".

Versions (please complete the following information):

  • OS: Windows 10
  • CEF Version: M117

Additional context
The cefclient app sets CefSettings.accept_language_list based on the "lang" flag here. This works as expected with the Alloy runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reportchromeRelated to the Chrome runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions