Bug 249773
| Summary: | [iOS] Add API for choosing applicationNameForUserAgent based on desktop/mobile mode | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ali Juma <ajuma> |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | achristensen, beidson, ggaren, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ali Juma
WKWebViewConfiguration's applicationNameForUserAgent only allows setting a single application name, that is used in both desktop and mobile mode when generating a user agent string.
However, this doesn't work for browsers (like Chrome on iOS) that want to use a different application name in desktop mode vs mobile mode.
Safari on iOS solves this problem using SPI to set the application name for desktop mode (-[WKWebPagePreferences _setApplicationNameForUserAgentWithModernCompatibility]), and non-Safari browsers would benefit from having API that achieves the same functionality.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ali Juma
This is also filed as FB7428433.
Sam Sneddon [:gsnedders]
(In reply to Ali Juma from comment #1)
> This is also filed as FB7428433.
rdar://56905925