| Summary: | [Media] Make currentTime compliant with the spec when readyState is HAVE_NOTHING | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Enrique Ocaña <eocanha> | ||||||||||||
| Component: | Media | Assignee: | Enrique Ocaña <eocanha> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | calvaris, cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, philipj, sergio, webkit-bug-importer, webkit | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Enrique Ocaña
2021-08-27 02:50:31 PDT
Created attachment 436629 [details]
Patch
Comment on attachment 436629 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=436629&action=review > LayoutTests/media/video-seek-have-nothing.html:25 > + testExpected('video.currentTime', 2); > + It would be useful to check the time after playback starts as well, to test the changes to `HTMLMediaElement::setReadyState` > LayoutTests/media/video-seek-have-nothing.html:29 > + }, 1500); 1500ms is probably short enough that we will have false-positives on a heavily loaded bot, so I'd use something much larger (6000?) Created attachment 436774 [details]
Patch
Created attachment 436868 [details]
Patch
Created attachment 436902 [details]
Patch
Now only the Mac stress test bot fails. CurrentTime "goes back" to 0 after the seeked event. I guess it's because we reset defaultPlaybackStartPosition (so the "actual" 0 position is now into effect for currentTime), but the seekTask() enqueued internally by seekWithTolerance() takes time to run, so that temporary 0 is visible. However, the "seeked" event is only triggered after the seek has been completed, so I don't know why the seek target time isn't returned. Created attachment 437161 [details]
Patch
Committed r285571 (244079@main): <https://commits.webkit.org/244079@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437161 [details]. |