faisalman / ua-parser-js

"Unmask Your Traffic" - UAParser.js: The Essential Web Development Tool for User-Agent Detection
https://uaparser.dev/
GNU Affero General Public License v3.0
9.27k stars 1.19k forks source link

Detecting incorrect windows 7 as windows 10 #768

Open MarianoFacundoArch opened 6 hours ago

MarianoFacundoArch commented 6 hours ago

Opening ua-parser-js official website as well, a windows 7 is detected as windows 10:

{
  "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "109.0.5414.75",
    "major": "109"
  },
  "cpu": {
    "architecture": "amd64"
  },
  "device": {},
  "engine": {
    "name": "Blink",
    "version": "109.0.0.0"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  }
}
MarianoFacundoArch commented 6 hours ago

Same problem with Windows 8. However https://whatsmyos.com/ always detects all correctly...

MarianoFacundoArch commented 6 hours ago

For Windows 8, in ua-parser I get:

{
  "ua": "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "109.0.5414.75",
    "major": "109"
  },
  "cpu": {
    "architecture": "amd64"
  },
  "device": {},
  "engine": {
    "name": "Blink",
    "version": "109.0.0.0"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  }
}

So it always returns OS windows 10, which is not true.