Skip to content

Commit

Permalink
Cherry-pick 275835@main (1a9883a). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=270438

    Atlassian Confluence blocks Epiphany's user agent
    https://bugs.webkit.org/show_bug.cgi?id=270438

    Reviewed by Philippe Normand.

    * Source/WebCore/platform/glib/UserAgentQuirks.cpp:
    (WebCore::urlRequiresMacintoshPlatform):
    * Tools/TestWebKitAPI/Tests/WebCore/UserAgentQuirks.cpp:
    (TestWebKitAPI::TEST):

    Canonical link: https://commits.webkit.org/275835@main
  • Loading branch information
mcatanzaro authored and aperezdc committed Mar 8, 2024
1 parent 10d3e3e commit 0032643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/WebCore/platform/glib/UserAgentQuirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ static bool urlRequiresMacintoshPlatform(const String& domain, const String& bas
if (domain == "www.sspa.juntadeandalucia.es"_s)
return true;

// Atlassian Confluence discrimates against WebKitGTK's standard user agent
// by completely blocking access to the application. It runs on different
// subdomains for each Atlassian customer so the quirk must apply broadly.
if (baseDomain == "atlassian.net"_s)
return true;

return false;
}
#endif // ENABLE(PUBLIC_SUFFIX_LIST)
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 @@ -107,6 +107,7 @@ TEST(UserAgentTest, Quirks)
assertUserAgentForURLHasMacPlatformQuirk("http://mail.ntu.edu.tw/");
assertUserAgentForURLHasMacPlatformQuirk("http://exchange.tu-berlin.de/");
assertUserAgentForURLHasMacPlatformQuirk("http://www.sspa.juntadeandalucia.es/");
assertUserAgentForURLHasMacPlatformQuirk("http://foobar.atlassian.net/");

assertUserAgentForURLHasEmptyQuirk("http://accounts.google.com/");
assertUserAgentForURLHasEmptyQuirk("http://docs.google.com/");
Expand Down

0 comments on commit 0032643

Please sign in to comment.