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

window.navigator.language is set incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.9.2
    • 5.9.1
    • WebEngine
    • None
    • 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

            juri.valdmann Jüri Valdmann (Inactive)
            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