[Webkit-unassigned] [Bug 245213] New: navigator.appVersion returns version with comma i.e., 15.6, 2 instead of 15.6.2 in iOS 15.7

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 03:12:36 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=245213

            Bug ID: 245213
           Summary: navigator.appVersion returns version with comma i.e.,
                    15.6,2 instead of 15.6.2 in iOS 15.7
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: akchenna at cisco.com

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220915/bdeedcaa/attachment-0001.htm>


More information about the webkit-unassigned mailing list