NEW 249773
[iOS] Add API for choosing applicationNameForUserAgent based on desktop/mobile mode
https://bugs.webkit.org/show_bug.cgi?id=249773
Summary [iOS] Add API for choosing applicationNameForUserAgent based on desktop/mobil...
Ali Juma
Reported 2022-12-22 06:57:21 PST
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
Ali Juma
Comment 1 2022-12-22 06:57:56 PST
This is also filed as FB7428433.
Sam Sneddon [:gsnedders]
Comment 2 2022-12-23 03:22:05 PST
(In reply to Ali Juma from comment #1) > This is also filed as FB7428433. rdar://56905925
Note You need to log in before you can comment on or make changes to this bug.