Bug 245213
Summary: | navigator.appVersion returns version with comma i.e., 15.6,2 instead of 15.6.2 in iOS 15.7 | ||
---|---|---|---|
Product: | WebKit | Reporter: | akchenna |
Component: | WebKit Misc. | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | bernard.cluyse, bfulgham, cdumez, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 15 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 15 |
akchenna
Hello!
Our team has observed that in the recent update of iOS, i.e., iOS 15.7, when trying to access the browser version through navigator API i.e,
const appVersion = navigator.appVersion
useragent string returned contains a comma in its version. The above code snippet returns the following string
"5.0 (iPhone; CPU iPhone OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6,2 Mobile/15E148 Safari/604.1"
As can be observed, 15.6,2 has a comma in it instead of a dot. Is this an expected output of navigator.appVersion ?
We have tested the same code snippet in the older version, and we got the version as 15.6.1. And there has been same cases in iPadOS 15.7
For reference: https://github.com/faisalman/ua-parser-js/issues/594
Let me know if there are any details required.
Thanks in advance
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/100005241>
Alexey Proskuryakov
Thank you for the report! This is Safari version, not WebKit, so this will be tracked by Apple internally.
Sam Sneddon [:gsnedders]
*** Bug 245360 has been marked as a duplicate of this bug. ***