Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e2b9ce361abc41c820d91691da0a71155c1a324a
https://github.com/WebKit/WebKit/commit/e2b9ce361abc41c820d91691da0a71155c1a324a
Author: Ahmad Saleem <[email protected]>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState-expected.txt
M Source/WebCore/html/HTMLMediaElement.cpp
Log Message:
-----------
HTMLMediaElement::prepareForLoad should fire timeupdate event when resetting
playback position per spec step 7.8
https://bugs.webkit.org/show_bug.cgi?id=309230
rdar://171785463
Reviewed by Eric Carlson.
Per the HTML specification [1], step 7.8 of the media element load algorithm
requires queuing a media element task to fire a timeupdate event when setting
the official playback position to 0 changes its value. This was never
implemented (noted by a FIXME comment).
The fix captures the current playback position before createMediaPlayer()
destroys the old player state, then uses the saved value to determine whether
to schedule the timeupdate event after the position is reset to zero.
[1] https://html.spec.whatwg.org/multipage/media.html#loading-the-media-resource
* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::prepareForLoad):
*
LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-events-networkState-expected.txt:
Progression
Canonical link: https://commits.webkit.org/308695@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications