Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c58c8180245a031b9209d8718999b6a735ba4c06
https://github.com/WebKit/WebKit/commit/c58c8180245a031b9209d8718999b6a735ba4c06
Author: Jer Noble <[email protected]>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
A LayoutTests/media/media-visible-in-viewport-in-fullscreen-expected.txt
A LayoutTests/media/media-visible-in-viewport-in-fullscreen.html
M LayoutTests/platform/glib/TestExpectations
M Source/WebCore/html/HTMLMediaElement.cpp
M Source/WebCore/platform/graphics/MediaPlayer.cpp
M Source/WebCore/platform/graphics/MediaPlayerEnums.h
M
Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/Internals.h
M Source/WebCore/testing/Internals.idl
M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in
Log Message:
-----------
[Cocoa] Video disappears from fullscreen when video element is not visible
rdar://177081214
https://bugs.webkit.org/show_bug.cgi?id=316010
Reviewed by Eric Carlson.
In 311380@main, MediaElements which were scrolled far away from the viewport
were sent
a message saying so, but no exception was made for video elemnets playing in
fullscreen
or picture-in-picture. This had the side effect, for MediaPlayerPrivates which
would tear
down their decoders when not visible, of causing fullscreen or pip playback to
show
black frames.
Add the concept of "VisibleInFullscreen" and "VisibleInPictureInPicture" to
ViewportVisibility
and send those values when in fullscreen or pip.
* LayoutTests/media/media-visible-in-viewport-in-fullscreen-expected.txt: Added.
* LayoutTests/media/media-visible-in-viewport-in-fullscreen.html: Added.
Canonical link: https://commits.webkit.org/314324@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications