0
Files
src/docs/ios/user_agent.md
jasonkliu 2477246e46 Add Request Desktop Site UA.
BUG=

TBR=olivierrobin@chromium.org

Review-Url: https://codereview.chromium.org/2782543003
Cr-Commit-Position: refs/heads/master@{#460096}
2017-03-28 14:21:13 +00:00

31 lines
790 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 **Desktop Safari** UA is
sent:
```
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4)
AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7
Safari/600.7.12
```