Skip to content

Commit

Permalink
[Quirks] Disable resolution media feature on Expedia Group sites
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=244627
rdar://98750324

Reviewed by Chris Dumez.

* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldDisableResolutionMediaQuery const):

Canonical link: https://commits.webkit.org/254256@main
  • Loading branch information
gsnedders committed Sep 8, 2022
1 parent dfee4b8 commit ee272e0
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion Source/WebCore/page/Quirks.cpp
Expand Up @@ -230,7 +230,50 @@ bool Quirks::shouldDisableResolutionMediaQuery() const
if (!needsQuirks())
return false;
auto host = m_document->url().host();
return equalLettersIgnoringASCIICase(host, "www.hotels.com"_s);

if (equalLettersIgnoringASCIICase(host, "www.carrentals.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.cheaptickets.com"_s))
return true;

if (topPrivatelyControlledDomain(host.toString()).startsWith("ebookers."_s))
return true;

if (topPrivatelyControlledDomain(host.toString()).startsWith("expedia."_s))
return true;

if (host.endsWithIgnoringASCIICase(".hoteis.com"_s))
return true;

if (host.endsWithIgnoringASCIICase(".hoteles.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.hotels.cn"_s))
return true;

if (host.endsWithIgnoringASCIICase(".hotels.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.mrjet.se"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.orbitz.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.travelocity.ca"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.travelocity.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.wotif.com"_s))
return true;

if (equalLettersIgnoringASCIICase(host, "www.wotif.co.nz"_s))
return true;

return false;
}

bool Quirks::needsMillisecondResolutionForHighResTimeStamp() const
Expand Down

0 comments on commit ee272e0

Please sign in to comment.