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.
This is also filed as FB7428433.
(In reply to Ali Juma from comment #1) > This is also filed as FB7428433. rdar://56905925