Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 37252c9cdd715c2e3f3d1481167cce1f561a4598
https://github.com/WebKit/WebKit/commit/37252c9cdd715c2e3f3d1481167cce1f561a4598
Author: Andy Estes <[email protected]>
Date: 2026-03-19 (Thu, 19 Mar 2026)
Changed paths:
M Source/WebCore/html/MediaElementSession.cpp
Log Message:
-----------
[iOS] Safari resigns Now Playing when entering PiP via AVExperienceController
https://bugs.webkit.org/show_bug.cgi?id=310167
rdar://172809261
Reviewed by Anne van Kesteren.
For clients with the RequirePageVisibilityForVideoToBeNowPlaying, WebKit
resigns Now Playing when
the UI process is no longer visible. However, this is incorrect when a video is
playing in PiP.
Resolved this in MediaElementSession::canShowControlsManager by checking if the
element is in a
non-None fullscreen mode prior to checking for
RequirePageVisibilityForVideoToBeNowPlaying.
* Source/WebCore/html/MediaElementSession.cpp:
(WebCore::MediaElementSession::canShowControlsManager const):
Canonical link: https://commits.webkit.org/309589@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications