DescriptionFix WMPI::currentTime/seek race causing flaky Blink mediasource-redundant-seek.html on desktop
Though repro of bug 418324 was unsuccessful locally, inspection of Blink
HTMLMediaElement's usage of WebMediaPlayer::currentTime() revealed
race between Pipeline time management and WMPI/Blink seek time
knowledge was at least partly responsible for the flakiness.
This change updates WMPI::seek() and WMPI::currentTime() implementations
with logic similar to WebMediaPlayerAndroid to:
1) eliminate some redundant seeks, and
2) reflect the best knowledge of seek target time when responding
to currentTime() requests. This latter piece is expected to
fix the race and layout test flakiness.
BUG=418324
TEST=no media_unittest nor blink http/tests/media/ or media/ regression locally on Linux, layout test bots show no flakiness for mediasource-redundant-seek.html
Committed: https://crrev.com/1b2ae7d307faa0d8900a6047be22b71894bba8c0
Cr-Commit-Position: refs/heads/master@{#333621}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address nits #
Messages
Total messages: 15 (4 generated)
|