win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
1.83k stars 60 forks source link

[BUG] User Agent defaults to Windows 10 for all versions of Windows instead of reporting the actual version #673

Closed FranceBB closed 1 week ago

FranceBB commented 1 week ago

Bug description By default, Supermium returns Windows 10 as OS in its user agent instead of reporting the actual OS it's running on. For instance, Supermium 122.0.6261.152 reports:

Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

however, when it's run on, let's say, Windows XP, it should be reporting:

Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

This can be overcome by starting Supermium with the following shortcut target:

C:\Program Files\Supermium\chrome.exe --user-agent="Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36"

However it's annoying as one has to update it every time Supermium gets updated. On top of it, every Supermium user that doesn't change the user agent manually is contributing to the increase in the Windows 10 net market share, which isn't ideal.

To Reproduce Steps to reproduce the behavior:

  1. Run Supermium
  2. Go to chrome://version/
  3. Check the User Agent
  4. See the mismatch between the OS you're running on (XP, Vista, 7, 8, 8.1) and the one reported (Windows 10)

Expected behavior The user agent should report the actual OS it's running on.

Windows XP: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

Windows Vista: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

Windows 7: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

Windows 8: Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

Windows 8.1: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.152 Safari/537.36

opzch commented 1 week ago

Probably intentional, otherwise too many sites will be pestering with "YOUR BROWSER IS UNSUPPORTED", "YOUR OPERATING SYSTEM IS OUTDATED", "WE ORDER YOU TO UPDATE YOUR SOFTWARE" notifications.

See https://github.com/win32ss/supermium/issues/592#issuecomment-2119585823

On top of it, every Supermium user that doesn't change the user agent manually is contributing to the increase in the Windows 10 net market share, which isn't ideal.

Why should it be ideal? I'd prefer user experience over a tiny number in some tracking company statistics.

FranceBB commented 1 week ago

I didn't know that it was done on purpose to boost compatibility. Consider this a non bug then, but rather a "feature".

Issue closed.