Bug 271679
Summary: | HTMLMediaElement.played TimeRanges missing the last range on ended | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jason McLaughlin <siemova> |
Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ahmad.saleem792, eric.carlson, jean-yves.avenard, jer.noble, karlcow, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | All | ||
OS: | All |
Jason McLaughlin
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
<rdar://problem/125741797>
Ahmad Saleem
@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]
test case: https://jyavenard.github.io/htmltests/tests/271679.html
can reproduce easily
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/27431
EWS
Committed 277706@main (8338d4d31d30): <https://commits.webkit.org/277706@main>
Reviewed commits have been landed. Closing PR #27431 and removing active labels.