Title: [265890] trunk/Source/WebCore
Revision
265890
Author
wenson_hs...@apple.com
Date
2020-08-19 12:44:42 -0700 (Wed, 19 Aug 2020)

Log Message

[iOS] Restore a 10_15_* user-agent string when requesting desktop site
https://bugs.webkit.org/show_bug.cgi?id=215657
<rdar://problem/67376157>

Reviewed by Tim Horton.

Reporting a major version of `11_0` causes numerous compatibility issues on websites that attempt to parse major
and minor versions from the user agent string. This partially reverts r263970, and replaces the string with
`10_15_6`, which matches the UA string of the latest shipped macOS version.

* platform/ios/UserAgentIOS.mm:
(WebCore::standardUserAgentWithApplicationName):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (265889 => 265890)


--- trunk/Source/WebCore/ChangeLog	2020-08-19 19:19:20 UTC (rev 265889)
+++ trunk/Source/WebCore/ChangeLog	2020-08-19 19:44:42 UTC (rev 265890)
@@ -1,3 +1,18 @@
+2020-08-19  Wenson Hsieh  <wenson_hs...@apple.com>
+
+        [iOS] Restore a 10_15_* user-agent string when requesting desktop site
+        https://bugs.webkit.org/show_bug.cgi?id=215657
+        <rdar://problem/67376157>
+
+        Reviewed by Tim Horton.
+
+        Reporting a major version of `11_0` causes numerous compatibility issues on websites that attempt to parse major
+        and minor versions from the user agent string. This partially reverts r263970, and replaces the string with
+        `10_15_6`, which matches the UA string of the latest shipped macOS version.
+
+        * platform/ios/UserAgentIOS.mm:
+        (WebCore::standardUserAgentWithApplicationName):
+
 2020-08-18  Ryosuke Niwa  <rn...@webkit.org>
 
         REGRESSION(r265092): delegatesFocus causes WebKit to crash

Modified: trunk/Source/WebCore/platform/ios/UserAgentIOS.mm (265889 => 265890)


--- trunk/Source/WebCore/platform/ios/UserAgentIOS.mm	2020-08-19 19:19:20 UTC (rev 265889)
+++ trunk/Source/WebCore/platform/ios/UserAgentIOS.mm	2020-08-19 19:44:42 UTC (rev 265890)
@@ -83,7 +83,7 @@
 {
     if (type == UserAgentType::Desktop) {
         String appNameSuffix = applicationName.isEmpty() ? "" : makeString(" ", applicationName);
-        return makeString("Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0) AppleWebKit/605.1.15 (KHTML, like Gecko)", appNameSuffix);
+        return makeString("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko)", appNameSuffix);
     }
 
     // FIXME: Is this needed any more? Mac doesn't have this check,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to