Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS autodetect does not work correctly, Windows 11 detected as Windows 10 #3772

Open
sv-calin opened this issue Jun 23, 2023 · 4 comments
Open

Comments

@sv-calin
Copy link
Collaborator

Url: https://webcompat.com/issues/new

Environment:
Operating system: Windows 11
Browser/Version: Firefox Release 114 / Chrome 114

Steps to reproduce:

  1. Go to https://webcompat.com/issues/new
  2. Complete the required steps for filing a bug report until you are asked where you've encountered this issue.
  3. Observe the detected Operating System.

Expected Behavior:
The detected Operating System is Windows 11.

Actual Behavior:
The detected Operating System is Windows 10.

image

Watchers:
@softvision-raul-bucata
@sv-calin

@karlcow
Copy link
Member

karlcow commented Jun 23, 2023

@sv-calin when you expect it to be Windows 11. What is the user agent string of your browser?
Both Chrome and Firefox have started to freeze parts of their user agent strings.

For example, if you go https://echo.opera.com with Windows 11, what is the UA string for Chrome and Firefox?

@sv-calin
Copy link
Collaborator Author

sv-calin commented Jun 30, 2023

from echo.opera.com

Firefox Nightly: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Chrome: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

from google.com

image
image

Tested on: Windows 11

@karlcow
Copy link
Member

karlcow commented Jun 30, 2023

So as you can see. This is normal. We can't fix this. :)
It's on purpose. Browsers are starting to freeze the information in the UA string to avoid fingerprinting (and sniffing). :)

Some of these data maybe accessible through UA client hints but only in Chrome for now.
@miketaylr might be able to confirm.
I don't know if @ksy36 has enough time to parse Client Hints if the information is there

@miketaylr
Copy link
Member

Some of these data maybe accessible through UA client hints but only in Chrome for now.

Yeah, you can get the correct Windows version via UACH. See https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants