RESOLVED FIXED147892
Don't short circuit seeking
https://bugs.webkit.org/show_bug.cgi?id=147892
Summary Don't short circuit seeking
Eric Carlson
Reported 2015-08-11 12:27:03 PDT
HTMLMediaElement does nothing when asked to seek to the time of a pending seek. This can result in a seek to the wrong time when the pending seek was caused by a call to fastSeek and the seek that is ignored is an exact seek.
Attachments
Patch to preview, tests will follow. (10.70 KB, text/plain)
2015-08-11 14:18 PDT, Eric Carlson
buildbot: commit-queue-
Archive of layout-test-results from ews102 for mac-mavericks (688.66 KB, application/zip)
2015-08-11 14:41 PDT, Build Bot
no flags
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (748.24 KB, application/zip)
2015-08-11 14:46 PDT, Build Bot
no flags
Updated patch (22.93 KB, patch)
2015-08-12 13:08 PDT, Eric Carlson
jer.noble: review+
Patch for landing (22.35 KB, text/plain)
2015-08-12 18:44 PDT, Eric Carlson
no flags
Patch for landing (23.05 KB, patch)
2015-08-12 18:47 PDT, Eric Carlson
buildbot: commit-queue-
Archive of layout-test-results from ews102 for mac-mavericks (552.01 KB, application/zip)
2015-08-12 19:22 PDT, Build Bot
no flags
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (603.92 KB, application/zip)
2015-08-12 19:27 PDT, Build Bot
no flags
Updated patch for landing (18.79 KB, patch)
2015-08-13 08:14 PDT, Eric Carlson
eric.carlson: commit-queue+
Another updated patch for landing (22.75 KB, patch)
2015-08-13 10:37 PDT, Eric Carlson
buildbot: commit-queue-
Archive of layout-test-results from ews102 for mac-mavericks (654.53 KB, application/zip)
2015-08-13 11:15 PDT, Build Bot
no flags
YAUPFL (18.49 KB, patch)
2015-08-13 11:23 PDT, Eric Carlson
no flags
Follow up patch (1.85 KB, patch)
2015-08-13 15:40 PDT, Jer Noble
no flags
Follow up patch (3.40 KB, patch)
2015-08-13 15:50 PDT, Jer Noble
no flags
Eric Carlson
Comment 1 2015-08-11 12:34:17 PDT
Eric Carlson
Comment 2 2015-08-11 14:18:00 PDT
Created attachment 258755 [details] Patch to preview, tests will follow.
WebKit Commit Bot
Comment 3 2015-08-11 14:20:10 PDT
Attachment 258755 [details] did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 4 2015-08-11 14:41:01 PDT
Comment on attachment 258755 [details] Patch to preview, tests will follow. Attachment 258755 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/46021 New failing tests: media/track/track-cues-seeking.html media/track/track-cue-rendering-rtl.html media/track/track-css-cue-lifetime.html media/media-controller-playbackrate.html media/track/track-in-band-style.html media/track/track-cue-rendering-snap-to-lines-not-set.html media/track/track-cue-nothing-to-render.html media/track/regions-webvtt/vtt-region-display.html media/track/track-css-matching.html media/track/track-css-matching-timestamps.html media/track/track-cue-overlap-snap-to-lines-not-set.html
Build Bot
Comment 5 2015-08-11 14:41:03 PDT
Created attachment 258756 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 6 2015-08-11 14:46:23 PDT
Comment on attachment 258755 [details] Patch to preview, tests will follow. Attachment 258755 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/46042 New failing tests: media/track/track-cues-seeking.html media/track/track-cue-rendering-rtl.html media/track/track-css-cue-lifetime.html media/media-controller-playbackrate.html media/track/track-in-band-style.html media/track/track-cue-rendering-snap-to-lines-not-set.html media/track/track-cue-nothing-to-render.html media/track/regions-webvtt/vtt-region-display.html media/track/track-css-matching.html media/track/track-css-matching-timestamps.html media/track/track-cue-overlap-snap-to-lines-not-set.html
Build Bot
Comment 7 2015-08-11 14:46:25 PDT
Created attachment 258758 [details] Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Eric Carlson
Comment 8 2015-08-12 13:08:16 PDT
Created attachment 258840 [details] Updated patch
Jer Noble
Comment 9 2015-08-12 13:48:58 PDT
Comment on attachment 258840 [details] Updated patch Nit, the patch doesn't apply to ToT. View in context: https://bugs.webkit.org/attachment.cgi?id=258840&action=review > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:1315 > - callOnMainThread([weakThis, finished] { > + double currentTime = CMTimeGetSeconds([m_avPlayerItem currentTime]); > + callOnMainThread([weakThis, finished, currentTime] { > auto _this = weakThis.get(); > + LOG(Media, "MediaPlayerPrivateAVFoundationObjC::seekToTime(%p) - completion handler called, currentTime = %f", _this, currentTime); > if (!_this) I think this is going to result in a "unused parameter warning/error" on non-logging builds; you may want to add UNUSED_PARAM() inside the block.
Eric Carlson
Comment 10 2015-08-12 18:44:19 PDT
Created attachment 258870 [details] Patch for landing
Eric Carlson
Comment 11 2015-08-12 18:47:17 PDT
Created attachment 258871 [details] Patch for landing
Build Bot
Comment 12 2015-08-12 19:22:56 PDT
Comment on attachment 258871 [details] Patch for landing Attachment 258871 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/51185 New failing tests: media/video-played-ranges-1.html media/video-played-collapse.html media/video-pause-immediately.html
Build Bot
Comment 13 2015-08-12 19:22:58 PDT
Created attachment 258874 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 14 2015-08-12 19:27:53 PDT
Comment on attachment 258871 [details] Patch for landing Attachment 258871 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/51196 New failing tests: media/video-played-ranges-1.html media/video-pause-immediately.html
Build Bot
Comment 15 2015-08-12 19:27:57 PDT
Created attachment 258875 [details] Archive of layout-test-results from ews105 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Eric Carlson
Comment 16 2015-08-13 08:14:24 PDT
Created attachment 258889 [details] Updated patch for landing
Eric Carlson
Comment 17 2015-08-13 10:37:36 PDT
Created attachment 258898 [details] Another updated patch for landing
Build Bot
Comment 18 2015-08-13 11:15:45 PDT
Comment on attachment 258898 [details] Another updated patch for landing Attachment 258898 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/53601 New failing tests: media/video-played-ranges-1.html media/video-played-collapse.html media/video-pause-immediately.html
Build Bot
Comment 19 2015-08-13 11:15:47 PDT
Created attachment 258902 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Eric Carlson
Comment 20 2015-08-13 11:23:53 PDT
WebKit Commit Bot
Comment 21 2015-08-13 12:16:32 PDT
Comment on attachment 258905 [details] YAUPFL Clearing flags on attachment: 258905 Committed r188390: <http://trac.webkit.org/changeset/188390>
Jer Noble
Comment 22 2015-08-13 15:40:20 PDT
Created attachment 258941 [details] Follow up patch Pre-reviewed by Eric Carlson in person.
Jer Noble
Comment 23 2015-08-13 15:50:08 PDT
Created attachment 258943 [details] Follow up patch Pre-reviewed by Eric Carlson in person.
WebKit Commit Bot
Comment 24 2015-08-13 16:39:39 PDT
Comment on attachment 258943 [details] Follow up patch Clearing flags on attachment: 258943 Committed r188416: <http://trac.webkit.org/changeset/188416>
Csaba Osztrogonác
Comment 25 2015-09-04 03:58:51 PDT
Already landed, let's close it.
Note You need to log in before you can comment on or make changes to this bug.