Skip to content

Keep media lifecycle stable while in fullscreen - #2509

Merged
tf merged 1 commit into
codevise:masterfrom
tf:held-fs-lifecycle
Oct 15, 2026
Merged

tf merged 1 commit into
codevise:masterfrom
tf:held-fs-lifecycle

Conversation

@tf

@tf tf commented Oct 15, 2026

Copy link
Copy Markdown
Member

Entering fullscreen resizes the viewport the page behind the fullscreen element is laid out in. Sections sized in viewport units grow and the element's position shifts although nothing scrolled. Lifecycle observers interpreted this as the element leaving the viewport, unloading inline videos and pausing them while they were displayed in fullscreen. Exiting fullscreen then reloaded the source from scratch.

Hold lifecycle values while any element is in fullscreen (including the native video player on iPhone) and until they match their previous values again after exiting, falling back to a short timeout. This replaces the inline video specific guard which only prevented the fade out but not the unloading.

Entering fullscreen resizes the viewport the page behind the
fullscreen element is laid out in. Sections sized in viewport units
grow and the element's position shifts although nothing scrolled.
Lifecycle observers interpreted this as the element leaving the
viewport, unloading inline videos and pausing them while they were
displayed in fullscreen. Exiting fullscreen then reloaded the source
from scratch.

Hold lifecycle values while any element is in fullscreen (including
the native video player on iPhone) and until they match their
previous values again after exiting, falling back to a short timeout.
This replaces the inline video specific guard which only prevented
the fade out but not the unloading.
@tf tf added this to the v17.3 milestone Oct 15, 2026
@tf
tf merged commit e958247 into codevise:master Oct 15, 2026
32 of 33 checks passed
@tf
tf deleted the held-fs-lifecycle branch October 15, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant