| Summary: | REGRESSION(262173@main): [ macOS WK2 ] media/media-source/media-source-duplicate-seeked.html is a flaky failure | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Schwartz <ben_schwartz> |
| Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | eric.carlson, graouts, jean-yves.avenard, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=254074 https://bugs.webkit.org/show_bug.cgi?id=225367 https://bugs.webkit.org/show_bug.cgi?id=260185 |
||
|
Description
Ben Schwartz
2023-08-01 12:46:07 PDT
I have marked this test as a flaky failure while this issue is investigated. (Link: https://github.com/WebKit/WebKit/pull/16288) Test gardening commit 266489@main (3cd791a12459): <https://commits.webkit.org/266489@main> Reviewed commits have been landed. Closing PR #16288 and removing active labels. The test is non-deterministic/invalid. It adds 1s of video element (using the MockSourceBuffer) and set the duration to 1s. It then seeks `currentTime = 1` which is the end of the video and then calls play() again once the `seeked` event has fired. However, per spec, if the playback has reached the end of the video and you call `play()` https://html.spec.whatwg.org/multipage/media.html#internal-play-steps "If the playback has ended and the direction of playback is forwards, seek to the earliest possible position of the media resource." so we seek again. The flow of the test is as follow: 1- Load 1s of data 2- set duration to 1s 3- call endOfStream 3- seek to 1s 4- seek completes -> `seeked` event is fired. 5- `ended` event is fired 5- call play(), we are at the end of the element, we seek to the start -> `seeked` event is fired, 6- playback continue and now reaches the end -> `ended` event is fired. So we have the `ended` event fired twice, but the test expect `ended` to be fired before `seeked` which is only true if the listener of the first `ended` event hasn't run. Not seeking to the end of the video at the start of the test, but slightly before would keep the aim of the test, but not caused `ended` event to be fired twice as we will only reach the end if the media is playing. Pull request: https://github.com/WebKit/WebKit/pull/16696 Committed 267024@main (95c4d7e41e12): <https://commits.webkit.org/267024@main> Reviewed commits have been landed. Closing PR #16696 and removing active labels. |