Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61949

window.navigator.language is set incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.9.2
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Archlinux

      Description

      When trying to get window.navigator.language (singular) via JavaScript, it seems to be set to whatever LC_ALL is set to in the environment. This causes multiple problems:

      • Using QWebEngineProfile::setHttpAcceptLanguage() doesn't affect it (only window.navigator.languages in the plural), but it'd expect it to.
      • If LC_ALL=C is set in the environment, window.navigator.language is set to "C", which seems against MDN and breaks things like this website. It works fine in Chromium (set to en-US) even with that.

        Attachments

        For Gerrit Dashboard: QTBUG-61949
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            juri.valdmann Jüri Valdmann
            Reporter:
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes