Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Issue 1164343003: Fix WMPI::currentTime/seek race causing flaky Blink mediasource-redundant-seek.html on desktop (Closed)

Created:
5 years, 6 months ago by wolenetz
Modified:
5 years, 6 months ago
Reviewers:
Srirama, xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org, philipj_slow
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -15 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 6 chunks +40 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
wolenetz
Xiaohan: Please take a look. I don't completely understand if this will fix the redundant-seek ...
5 years, 6 months ago (2015-06-09 00:26:18 UTC) #2
wolenetz
On 2015/06/09 00:26:18, wolenetz wrote: > Xiaohan: Please take a look. I don't completely understand ...
5 years, 6 months ago (2015-06-09 00:28:38 UTC) #3
wolenetz
Looking through about half of these PS1 try bot logs for a blink web_tests that ...
5 years, 6 months ago (2015-06-09 16:01:40 UTC) #4
Srirama
https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc#newcode307 media/blink/webmediaplayer_impl.cc:307: pending_seek_ = false; I think this may not be ...
5 years, 6 months ago (2015-06-09 17:08:43 UTC) #6
wolenetz
https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc#newcode307 media/blink/webmediaplayer_impl.cc:307: pending_seek_ = false; On 2015/06/09 17:08:42, Srirama wrote: > ...
5 years, 6 months ago (2015-06-09 19:44:28 UTC) #7
wolenetz
On 2015/06/09 19:44:28, wolenetz wrote: > https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc > File media/blink/webmediaplayer_impl.cc (right): > > https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc#newcode307 > ...
5 years, 6 months ago (2015-06-09 20:14:51 UTC) #8
xhwang
lgtm with nits https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc#newcode307 media/blink/webmediaplayer_impl.cc:307: pending_seek_ = false; reset |pending_seek_time_| as ...
5 years, 6 months ago (2015-06-09 21:33:57 UTC) #9
wolenetz
Thanks for the review! https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/1164343003/diff/1/media/blink/webmediaplayer_impl.cc#newcode307 media/blink/webmediaplayer_impl.cc:307: pending_seek_ = false; On 2015/06/09 ...
5 years, 6 months ago (2015-06-09 22:09:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164343003/20001
5 years, 6 months ago (2015-06-09 22:13:56 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-10 00:44:30 UTC) #14
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 00:46:39 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1b2ae7d307faa0d8900a6047be22b71894bba8c0
Cr-Commit-Position: refs/heads/master@{#333621}

Powered by Google App Engine
This is Rietveld 408576698