Skip to content
Permalink
Browse files
[GTK] Add user agent quirk for "ClicSalud+" (Andalusian Health Servic…
…e, Spain)

https://bugs.webkit.org/show_bug.cgi?id=239763

Patch by Michael Catanzaro <mcatanzaro@gnome.org> on 2022-04-27
Reviewed by Adrian Perez de Castro.

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

Canonical link: https://commits.webkit.org/250039@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mcatanzaro authored and webkit-commit-queue committed Apr 27, 2022
1 parent 3d19e33 commit a3cc3271c8c481742feb57b399022bdec043b78a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
@@ -119,6 +119,12 @@ static bool urlRequiresMacintoshPlatform(const String& domain, const String& bas
|| domain == "exchange.tu-berlin.de")
return true;

// https://www.sspa.juntadeandalucia.es/servicioandaluzdesalud/clicsalud/pages/portada.jsf
// Andalusian Health Service discriminates against WebKitGTK's standard user
// agent with an unsupported browser warning.
if (domain == "www.sspa.juntadeandalucia.es")
return true;

return false;
}

@@ -104,6 +104,7 @@ TEST(UserAgentTest, Quirks)
assertUserAgentForURLHasMacPlatformQuirk("http://outlook.office.com/");
assertUserAgentForURLHasMacPlatformQuirk("http://mail.ntu.edu.tw/");
assertUserAgentForURLHasMacPlatformQuirk("http://exchange.tu-berlin.de/");
assertUserAgentForURLHasMacPlatformQuirk("http://www.sspa.juntadeandalucia.es/");

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

0 comments on commit a3cc327

Please sign in to comment.