0
Files
src/docs/ios/user_agent.md
Gauthier Ambard 6c6dc148f8 [iOS] Update User Agent doc
Make sure that the Desktop UA used in the documentation matches the one
actually used in the code.

Bug: None
Change-Id: I33b8c30a48ada59c9f5fd5fccc896a9684b642b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3055411
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Reviewed-by: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905615}
2021-07-27 07:26:57 +00:00

854 B
Raw Blame History

User Agent in Chrome for iOS

The User Agent (UA) in Chrome for iOS is the same as the Mobile Safari user agent, with CriOS/<ChromeRevision> instead of Version/<VersionNum>.

Heres an example of the Chrome UA on iPhone:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X)
AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75
Mobile/14E5239e Safari/602.1

For comparison, the Mobile Safari UA:

Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X)
AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0
Mobile/14E5239e Safari/602.1

When the Request Desktop Site feature is enabled, the UA is the same as Desktop Safari with CriOS/<ChromeMajorRevision> being added:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5)
AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/85
Version/11.1.1 Safari/605.1.15