Skip to content

Commit

Permalink
Disable element fullscreen on digitaltrends.com on iPhone
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=270359
rdar://123722375

Reviewed by Jer Noble.

Adding quirk to digitaltrends.com to disable element fullscreen on iPhone,
until the website fixes its custom media controls which are currently
cut off on the bottom when the phone is rotated into landscape mode.

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

Canonical link: https://commits.webkit.org/275562@main
  • Loading branch information
danae404 authored and jernoble committed Mar 1, 2024
1 parent 872748a commit 9ab0a13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/WebCore/page/Quirks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ bool Quirks::shouldDisableElementFullscreenQuirk() const
if (!m_shouldDisableElementFullscreen) {
m_shouldDisableElementFullscreen = isDomain("vimeo.com"_s)
|| isDomain("instagram.com"_s)
|| (PAL::currentUserInterfaceIdiomIsSmallScreen() && isDomain("digitaltrends.com"_s))
|| isEmbedDomain("twitter.com"_s)
|| (PAL::currentUserInterfaceIdiomIsSmallScreen() && (isDomain("youtube.com"_s) || isYoutubeEmbedDomain()));
}
Expand Down

0 comments on commit 9ab0a13

Please sign in to comment.