faisalman / ua-parser-js

UAParser.js - The Essential Tool for User-Agent Detection in JavaScript & Web Development.

Home Page:https://uaparser.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OS version mismatch from a browser to another

maphe opened this issue · comments

Library version
Demo page

For the issue related with detection result, you can use the demo section in https://uaparser.js.org to confirm

Describe the bug
Using the demo page on Chrome
User-Agent on screen:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

OS in json:

  "os": {
    "name": "macOS",
    "version": "14.0.0"
  }

Now opening the demo page on Safari:
UA:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15

OS:

  "os": {
    "name": "macOS",
    "version": "10.15.7"
  }

Expected behavior
It should show version: 14.0.0 for both.

Additional context
For some reason, when I run it locally on my project, with 2.0.0-alpha3 on Chrome, I get the Safari behavior (os version 10.15.7)

Duplicate of #659
Also there's an explanation here of the real issue which seems not to be with this library