Bug 245213 - navigator.appVersion returns version with comma i.e., 15.6,2 instead of 15.6.2 in iOS 15.7
Summary: navigator.appVersion returns version with comma i.e., 15.6,2 instead of 15.6....
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 245360 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-15 03:12 PDT by akchenna
Modified: 2022-09-20 17:04 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akchenna 2022-09-15 03:12:36 PDT
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
Comment 1 Radar WebKit Bug Importer 2022-09-15 18:41:01 PDT
<rdar://problem/100005241>
Comment 2 Alexey Proskuryakov 2022-09-16 09:38:07 PDT
Thank you for the report! This is Safari version, not WebKit, so this will be tracked by Apple internally.
Comment 3 Sam Sneddon [:gsnedders] 2022-09-20 17:04:19 PDT
*** Bug 245360 has been marked as a duplicate of this bug. ***