Skip to content

Commit

Permalink
[WPE][GTK] paypal.com requires user agent quirk
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=186466

Reviewed by Carlos Garcia Campos.

Source/WebCore:

* platform/UserAgentQuirks.cpp:
(WebCore::urlRequiresMacintoshPlatform):

Tools:

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


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@232667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
[email protected] committed Jun 10, 2018
1 parent 26134bc commit 43b3ea9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/WebCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2018-06-10 Michael Catanzaro <[email protected]>

[WPE][GTK] paypal.com requires user agent quirk
https://bugs.webkit.org/show_bug.cgi?id=186466

Reviewed by Carlos Garcia Campos.

* platform/UserAgentQuirks.cpp:
(WebCore::urlRequiresMacintoshPlatform):

2018-06-09 Dan Bernstein <[email protected]>

[Xcode] Clean up and modernize some build setting definitions
Expand Down
4 changes: 4 additions & 0 deletions Source/WebCore/platform/UserAgentQuirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ static bool urlRequiresMacintoshPlatform(const URL& url)
if (baseDomain == "whatsapp.com")
return true;

// paypal.com completely blocks users with WebKitGTK+'s standard user agent.
if (baseDomain == "paypal.com")
return true;

// chase.com displays a huge "please update your browser" warning with
// WebKitGTK+'s standard user agent.
if (baseDomain == "chase.com")
Expand Down
10 changes: 10 additions & 0 deletions Tools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2018-06-10 Michael Catanzaro <[email protected]>

[WPE][GTK] paypal.com requires user agent quirk
https://bugs.webkit.org/show_bug.cgi?id=186466

Reviewed by Carlos Garcia Campos.

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

2018-06-09 Dan Bernstein <[email protected]>

[Xcode] Clean up and modernize some build setting definitions
Expand Down
1 change: 1 addition & 0 deletions Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ TEST(UserAgentTest, Quirks)
assertUserAgentForURLHasMacPlatformQuirk("http://web.whatsapp.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://www.chase.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://docs.google.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://paypal.com");
}

} // namespace TestWebKitAPI

0 comments on commit 43b3ea9

Please sign in to comment.