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

Issue 578113002: Add back HTMLMediaElement::m_lastTimeUpdateEventMovieTime. (Closed)

Created:
6 years, 3 months ago by scherkus (not reviewing)
Modified:
6 years, 3 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Project:
blink
Visibility:
Public.

Description

Add back HTMLMediaElement::m_lastTimeUpdateEventMovieTime. I was too aggressive removing this code as it actually is nice to not fire duplicate timeupdate events when currentTime hasn't changed. The real fix is to leave it in, but to ignore it when firing non-periodic timeupdate events. For whatever it's worth, this also matches what Firefox does. BUG=414649 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182260

Patch Set 1 #

Patch Set 2 : the fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
scherkus (not reviewing)
PS#1 is revert PS#2 is my changes to the revert I tried stuffing everything into ...
6 years, 3 months ago (2014-09-17 23:59:22 UTC) #2
philipj_slow
LGTM. If possible, could you add a test that fails with the old code but ...
6 years, 3 months ago (2014-09-18 15:11:32 UTC) #3
philipj_slow
This seems pretty likely to be causing a new GC test to fail <https://codereview.chromium.org/552303006/#msg66>, so ...
6 years, 3 months ago (2014-09-18 18:52:33 UTC) #4
philipj_slow
lgtm
6 years, 3 months ago (2014-09-18 18:52:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/578113002/20001
6 years, 3 months ago (2014-09-18 18:53:44 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 182260
6 years, 3 months ago (2014-09-18 18:59:35 UTC) #8
scherkus (not reviewing)
On 2014/09/18 15:11:32, philipj wrote: > LGTM. > > If possible, could you add a ...
6 years, 3 months ago (2014-09-18 20:51:03 UTC) #9
scherkus (not reviewing)
On 2014/09/18 18:52:33, philipj wrote: > This seems pretty likely to be causing a new ...
6 years, 3 months ago (2014-09-18 20:51:13 UTC) #10
philipj_slow
6 years, 3 months ago (2014-09-18 21:09:53 UTC) #11
Message was sent while issue was closed.
On 2014/09/18 20:51:03, scherkus wrote:
> On 2014/09/18 15:11:32, philipj wrote:
> > LGTM.
> > 
> > If possible, could you add a test that fails with the old code but passes
now?
> 
> It's a bit tricky to write a test for this as it was non-deterministic
behaviour
> (the media engine would have to be struggling to advance to the clock).
Luckily
> the Mac bots were able to trigger it as we had already-failing tests.
> 
> I've since updated TestExpectations now that they're passing reliably:
> https://src.chromium.org/viewvc/blink?view=rev&revision=182267

OK, I wasn't sure if maybe there was a way to provoke it deterministically by
seeking to 0 repeatedly or... something. If it's inherently racy, then flaky
tests becoming non-flaky is all the proof required.

Powered by Google App Engine
This is Rietveld 408576698