Title: [295305] trunk/Source/WebCore/platform/ios/UserAgentIOS.mm
Revision
295305
Author
[email protected]
Date
2022-06-06 17:15:55 -0700 (Mon, 06 Jun 2022)

Log Message

Make Mobile Safari desktop mode report the same macOS version in the user agent as Safari on Mac
https://bugs.webkit.org/show_bug.cgi?id=241322

Patch by nitinseshadri <[email protected]> on 2022-06-06
Reviewed by Alexey Proskuryakov.

* Source/WebCore/platform/ios/UserAgentIOS.mm:
(WebCore::standardUserAgentWithApplicationName):
Change reported macOS version in user agent to 10.15.7.

Canonical link: https://commits.webkit.org/251347@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/platform/ios/UserAgentIOS.mm (295304 => 295305)


--- trunk/Source/WebCore/platform/ios/UserAgentIOS.mm	2022-06-06 23:47:49 UTC (rev 295304)
+++ trunk/Source/WebCore/platform/ios/UserAgentIOS.mm	2022-06-07 00:15:55 UTC (rev 295305)
@@ -85,7 +85,7 @@
 {
     auto separator = applicationName.isEmpty() ? "" : " ";
     if (type == UserAgentType::Desktop)
-        return makeString("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko)", separator, applicationName);
+        return makeString("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)", separator, applicationName);
 
     // FIXME: We should deprecate and remove this override; see https://bugs.webkit.org/show_bug.cgi?id=217927 for details.
     if (auto override = dynamic_cf_cast<CFStringRef>(adoptCF(CFPreferencesCopyAppValue(CFSTR("UserAgent"), CFSTR("com.apple.WebFoundation")))))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to