RESOLVED FIXED 238462
[macOS] Muted video is sometimes paused when entering fullscreen
https://bugs.webkit.org/show_bug.cgi?id=238462
Summary [macOS] Muted video is sometimes paused when entering fullscreen
Eric Carlson
Reported 2022-03-28 11:26:23 PDT
Muted video is sometimes paused when entering fullscreen
Attachments
Patch (15.64 KB, patch)
2022-03-28 11:37 PDT, Eric Carlson
ews-feeder: commit-queue-
Patch (15.70 KB, patch)
2022-03-28 12:05 PDT, Eric Carlson
no flags
Patch for landing (15.12 KB, patch)
2022-03-28 15:54 PDT, Eric Carlson
no flags
Eric Carlson
Comment 1 2022-03-28 11:27:09 PDT
Eric Carlson
Comment 2 2022-03-28 11:37:26 PDT
Eric Carlson
Comment 3 2022-03-28 12:05:01 PDT
Jer Noble
Comment 4 2022-03-28 14:07:56 PDT
Comment on attachment 455937 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455937&action=review > Source/WebCore/html/HTMLMediaElement.cpp:6058 > +#if ENABLE(FULLSCREEN_API) > + auto& fullscreenManager = document().fullscreenManager(); > + if (isVideo() && fullscreenManager.isFullscreen() && fullscreenManager.currentFullscreenElement()) > + return false; > +#endif > + > + if (m_videoFullscreenMode != VideoFullscreenModeNone) > + return false; > + > + return document().hidden(); I think this is incorrect long-term, insofar as element fullscreen on a background space (on macOS) shouldn't always be "visible", but we should file a bug to follow up later. > Source/WebCore/html/HTMLMediaElement.cpp:8344 > + queueTaskKeepingObjectAlive(*this, TaskSource::MediaElement, [this] { > + if (isContextStopped()) > + return; > + mediaSession().isVisibleInViewportChanged(); > + updateShouldAutoplay(); > + schedulePlaybackControlsManagerUpdate(); > + }); Is this necessary?
Eric Carlson
Comment 5 2022-03-28 15:48:34 PDT
Comment on attachment 455937 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455937&action=review >> Source/WebCore/html/HTMLMediaElement.cpp:6058 >> + return document().hidden(); > > I think this is incorrect long-term, insofar as element fullscreen on a background space (on macOS) shouldn't always be "visible", but we should file a bug to follow up later. I filed bug 238472 >> Source/WebCore/html/HTMLMediaElement.cpp:8344 >> + }); > > Is this necessary? Oops!
Eric Carlson
Comment 6 2022-03-28 15:54:37 PDT
Created attachment 455964 [details] Patch for landing
Eric Carlson
Comment 7 2022-03-29 10:17:52 PDT
Comment on attachment 455964 [details] Patch for landing The failing tests don't seem to be related.
EWS
Comment 8 2022-03-29 11:32:04 PDT
Committed r292049 (248986@main): <https://commits.webkit.org/248986@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 455964 [details].
Note You need to log in before you can comment on or make changes to this bug.