Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 246579d526ad461ced533b174c68351f30f4b494
https://github.com/WebKit/WebKit/commit/246579d526ad461ced533b174c68351f30f4b494
Author: Phinehas Fuachie <[email protected]>
Date: 2026-06-30 (Tue, 30 Jun 2026)
Changed paths:
M Source/WebCore/Modules/modern-media-controls/media/YouTubeCaptionQuirk.js
Log Message:
-----------
[visionOS] YouTube captions briefly duplicate at the start of docking to sys
environment
https://bugs.webkit.org/show_bug.cgi?id=318262
rdar://180028219
Reviewed by Jer Noble.
When the video starts transitioning into dock mode, the Safari window briefly
becomes visible
underneath, so YouTube's own caption layer (.ytp-caption-window-container)
shows up at the same
time the docked player is rendering the mirror text track. The result is two
copies of the same
caption stacked on top of each other for about a second, until the animation
finishes and Safari
is hidden again.
Hide YouTube's caption container whenever the mirror track is showing, and put
it back when the
track goes hidden. The MutationObserver keeps observing the container even
while it's hidden, so
the mirror track still picks up new captions.
* Source/WebCore/Modules/modern-media-controls/media/YouTubeCaptionQuirk.js:
(CaptionMirror.prototype._handlePresentationModeChanged):
Canonical link: https://commits.webkit.org/316238@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications