Title: [231156] trunk
Revision
231156
Author
[email protected]
Date
2018-04-30 08:16:14 -0700 (Mon, 30 Apr 2018)

Log Message

[GTK] Webkit should spoof as Safari on a Mac when on Chase.com
https://bugs.webkit.org/show_bug.cgi?id=185103

Reviewed by Carlos Garcia Campos.

Source/WebCore:

Send a fake user agent to chase.com to make it work.

* platform/UserAgentQuirks.cpp:
(WebCore::urlRequiresMacintoshPlatform):
(WebCore::UserAgentQuirks::stringForQuirk): Also, remove this stale comment.

Tools:

* TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
(TestWebKitAPI::TEST):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (231155 => 231156)


--- trunk/Source/WebCore/ChangeLog	2018-04-30 05:24:11 UTC (rev 231155)
+++ trunk/Source/WebCore/ChangeLog	2018-04-30 15:16:14 UTC (rev 231156)
@@ -1,3 +1,16 @@
+2018-04-30  Michael Catanzaro  <[email protected]>
+
+        [GTK] Webkit should spoof as Safari on a Mac when on Chase.com
+        https://bugs.webkit.org/show_bug.cgi?id=185103
+
+        Reviewed by Carlos Garcia Campos.
+
+        Send a fake user agent to chase.com to make it work.
+
+        * platform/UserAgentQuirks.cpp:
+        (WebCore::urlRequiresMacintoshPlatform):
+        (WebCore::UserAgentQuirks::stringForQuirk): Also, remove this stale comment.
+
 2018-04-29  Simon Fraser  <[email protected]>
 
         Make color-filter affect <attachment>

Modified: trunk/Source/WebCore/platform/UserAgentQuirks.cpp (231155 => 231156)


--- trunk/Source/WebCore/platform/UserAgentQuirks.cpp	2018-04-30 05:24:11 UTC (rev 231155)
+++ trunk/Source/WebCore/platform/UserAgentQuirks.cpp	2018-04-30 15:16:14 UTC (rev 231156)
@@ -93,6 +93,11 @@
     if (baseDomain == "whatsapp.com")
         return true;
 
+    // chase.com displays a huge "please update your browser" warning with
+    // WebKitGTK+'s standard user agent.
+    if (baseDomain == "chase.com")
+        return true;
+
     // Microsoft Outlook Web App forces users with WebKitGTK+'s standard user
     // agent to use the light version. Earlier versions even blocks users from
     // accessing the calendar.
@@ -133,7 +138,6 @@
         // Get versions from https://chromium.googlesource.com/chromium/src.git
         return ASCIILiteral("Chrome/58.0.3029.81");
     case NeedsMacintoshPlatform:
-        // Frozen per https://bugs.webkit.org/show_bug.cgi?id=180365
         return ASCIILiteral("Macintosh; Intel Mac OS X 10_13_4");
     case NeedsLinuxDesktopPlatform:
         return ASCIILiteral("X11; Linux x86_64");

Modified: trunk/Tools/ChangeLog (231155 => 231156)


--- trunk/Tools/ChangeLog	2018-04-30 05:24:11 UTC (rev 231155)
+++ trunk/Tools/ChangeLog	2018-04-30 15:16:14 UTC (rev 231156)
@@ -1,3 +1,13 @@
+2018-04-30  Michael Catanzaro  <[email protected]>
+
+        [GTK] Webkit should spoof as Safari on a Mac when on Chase.com
+        https://bugs.webkit.org/show_bug.cgi?id=185103
+
+        Reviewed by Carlos Garcia Campos.
+
+        * TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
+        (TestWebKitAPI::TEST):
+
 2018-04-28  Sihui Liu  <[email protected]>
 
         [Cocoa] Set HTTPOnly flag when converting Cookie to NSHTTPCookie

Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp (231155 => 231156)


--- trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp	2018-04-30 05:24:11 UTC (rev 231155)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp	2018-04-30 15:16:14 UTC (rev 231156)
@@ -93,6 +93,7 @@
     assertUserAgentForURLHasMacPlatformQuirk("http://www.whatsapp.com/");
     assertUserAgentForURLHasMacPlatformQuirk("http://web.whatsapp.com/");
     assertUserAgentForURLHasMacPlatformQuirk("http://outlook.live.com/");
+    assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/");
 }
 
 } // namespace TestWebKitAPI
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to