Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e75adef42393a3c8ddbc4ef10757d06a9feec890
      
https://github.com/WebKit/WebKit/commit/e75adef42393a3c8ddbc4ef10757d06a9feec890
  Author: Phinehas Fuachie <[email protected]>
  Date:   2026-09-01 (Tue, 01 Sep 2026)

  Changed paths:
    M Source/WebCore/html/MediaElementSession.cpp
    M Source/WebCore/page/Page.cpp
    M Source/WebCore/page/Page.h
    M Source/WebCore/page/QuirkNames.h
    M Source/WebCore/page/QuirkTable.cpp
    M Source/WebCore/page/Quirks.cpp
    M Source/WebCore/page/Quirks.h
    M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

  Log Message:
  -----------
  Rotating device to landscape exits full screen
https://bugs.webkit.org/show_bug.cgi?id=323142
rdar://148284059

Reviewed by Jer Noble.

sports.yahoo.com posts a PAUSE message to its cross-origin s.yimg.com player 
frame on rotation,
which pauses the <video> even while it is in fullscreen.

Add RequiresUserGestureToPauseInFullscreenAfterOrientationChangeQuirk, denying 
a programmatic pause
of a video in standard fullscreen within 500ms of an orientation change. Scoped 
to the s.yimg.com
player document embedded in yahoo.com.

Record the orientation change time on Page rather than Document, and look the 
quirk up on the player
document rather than the main frame document, so both still work when the 
player runs in its own
process under site isolation.

Use UserGestureIndicator::processingUserGestureForMedia() rather than the 
Document accessor, which
reports true for the whole 5 second transient activation window after the 
fullscreen tap.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::orientationChanged):
* Source/WebCore/dom/Document.h:
(WebCore::Document::lastOrientationChangeTime const):
* Source/WebCore/html/MediaElementSession.cpp:
(WebCore::MediaElementSession::playbackStateChangePermitted const):
* Source/WebCore/page/QuirkNames.h:
* Source/WebCore/page/QuirkTable.cpp:
* Source/WebCore/page/Quirks.cpp:
* Source/WebCore/page/Quirks.h:

Canonical link: https://commits.webkit.org/320318@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to