WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
314628
[MediaSource] ended event may not always fire when the duration change
https://bugs.webkit.org/show_bug.cgi?id=314628
Summary
[MediaSource] ended event may not always fire when the duration change
Jean-Yves Avenard [:jya]
Reported
2026-05-12 01:38:06 PDT
Consider the following. a MediaSource is created with data from [0-5][6-10] playback stalls at currentTime = 5. Now the player removes data from [6-10] and set the duration to 5. The ended event will never fire as timeChanged would only be called at the completion of the seek handled by
https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLMediaElement.cpp#6060-6061
``` if (now > dur) seekInternal(dur); ``` this causes the intermittent timeout in the test imported/w3c/web-platform-tests/media-source/mediasource-duration.html
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-05-12 01:38:14 PDT
<
rdar://problem/176863546
>
Jean-Yves Avenard [:jya]
Comment 2
2026-05-12 05:53:05 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64759
EWS
Comment 3
2026-05-13 00:42:05 PDT
Committed
313141@main
(4dd78df3a13e): <
https://commits.webkit.org/313141@main
> Reviewed commits have been landed. Closing PR #64759 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug