WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
271679
HTMLMediaElement.played TimeRanges missing the last range on ended
https://bugs.webkit.org/show_bug.cgi?id=271679
Summary
HTMLMediaElement.played TimeRanges missing the last range on ended
Jason McLaughlin
Reported
2024-03-25 15:29:23 PDT
Overview: When referencing the `played` property/method of a `video` in a handler for its `ended` event, the returned `TimeRanges` object does not include the last time range watched. Steps to Reproduce: 1) Embed a `video` and register a handler for its `ended` event. 2) Play the video. Skip some portion in the middle, then allow the video to end. 3) In the `ended` event handler, reference `video.played` and observe the missing time range. Actual Results: On `ended`, the `TimeRanges` object returned by `video.played` does not include the last time range. Expected Results: On `ended`, the `TimeRanges` object returned by `video.played` should include the last time range, just as in Blink and Gecko.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-04-01 15:30:15 PDT
<
rdar://problem/125741797
>
Ahmad Saleem
Comment 2
2024-04-04 05:19:12 PDT
@Jason - do you have test case for this to reproduce reliably and also if it was working in previous WebKit / Safari releases?
Jean-Yves Avenard [:jya]
Comment 3
2024-04-11 23:21:50 PDT
test case:
https://jyavenard.github.io/htmltests/tests/271679.html
can reproduce easily
Jean-Yves Avenard [:jya]
Comment 4
2024-04-17 19:36:26 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/27431
EWS
Comment 5
2024-04-18 15:36:36 PDT
Committed
277706@main
(8338d4d31d30): <
https://commits.webkit.org/277706@main
> Reviewed commits have been landed. Closing PR #27431 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