[webkit-changes] [WebKit/WebKit] fb4854: Allow iPad UserAgent header to be static
Dean Jackson
noreply at github.com
Fri Feb 17 09:57:12 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb48549c51eda1cc99d256d1cfbce7576883b9f5
https://github.com/WebKit/WebKit/commit/fb48549c51eda1cc99d256d1cfbce7576883b9f5
Author: Dean Jackson <dino at apple.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M Source/WebCore/platform/ios/UserAgentIOS.mm
Log Message:
-----------
Allow iPad UserAgent header to be static
https://bugs.webkit.org/show_bug.cgi?id=252421
rdar://105504510
Reviewed by Tim Horton.
There are cases where we want to provide a static UserAgent
header, similar to what we do for desktop-class browsing.
But unlike that, we still want to identify as a mobile
browser, so we need the "iPad" component.
This would be better exposed as a Setting, but this method
is called from WebKit without a Document, so it is a compile-
time guard for now.
* Source/WebCore/platform/ios/UserAgentIOS.mm:
(WebCore::standardUserAgentWithApplicationName):
Canonical link: https://commits.webkit.org/260450@main
More information about the webkit-changes
mailing list