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.