[Webkit-unassigned] [Bug 241322] New: Mobile Safari desktop mode user agent reports a different macOS version than Safari on Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 5 19:27:37 PDT 2022


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

            Bug ID: 241322
           Summary: Mobile Safari desktop mode user agent reports a
                    different macOS version than Safari on Mac
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: apps at nitinseshadri.com

When Mobile Safari is set to request the desktop website in iOS and iPadOS, it reports a user agent string with the macOS version as 10.15.6:

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

On the other hand, Safari on Mac always reports the macOS version as 10.15.7:

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

This inconsistency should be fixed (i.e. Mobile Safari should report 10.15.7 in desktop mode) because it could make it easier for a website to detect whether the visitor is using Mac Safari or is using Mobile Safari, defeating the purpose of desktop mode.

-- 
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/20220606/a217fcff/attachment.htm>


More information about the webkit-unassigned mailing list