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

Issue 2637833003: Convert HTMLTrackElement timer to per-frame scheduler as Networking. (Closed)

Created:
3 years, 11 months ago by joelhockey
Modified:
3 years, 11 months ago
Reviewers:
haraken, sashab, foolip
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, gasubic, nverne, nessy, slangley, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert HTMLTrackElement timer to per-frame scheduler. Change m_loadTimer to TaskRunnerTimer with TaskType Networking. https://html.spec.whatwg.org/#the-track-element BUG=624694 Review-Url: https://codereview.chromium.org/2637833003 Cr-Commit-Position: refs/heads/master@{#444696} Committed: https://chromium.googlesource.com/chromium/src/+/45ea2ba70b8a87d266cceb0dc7f824a21da74da0

Patch Set 1 #

Patch Set 2 : Convert HTMLTrackElement timer to per-frame scheduler as MediaElementEvent. #

Patch Set 3 : Convert HTMLTrackElement timer to per-frame scheduler as MediaElementEvent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M third_party/WebKit/Source/core/html/HTMLTrackElement.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTrackElement.cpp View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (14 generated)
joelhockey
Please review HTMLTrackElement timer conversion.
3 years, 11 months ago (2017-01-17 08:09:42 UTC) #4
sashab
LGTM, but above spec link in CL desc put "Link to spec:" or something :) ...
3 years, 11 months ago (2017-01-17 08:10:36 UTC) #7
joelhockey
Haraken, I'm not sure if MediaElementEvent is the correct TaskType for HTMLTrackElement.
3 years, 11 months ago (2017-01-17 08:13:12 UTC) #9
haraken
+foolip Hmm. It's not clear from the spec what the task source we should use ...
3 years, 11 months ago (2017-01-17 09:02:04 UTC) #11
fs
On 2017/01/17 at 08:13:12, joelhockey wrote: > Haraken, I'm not sure if MediaElementEvent is the ...
3 years, 11 months ago (2017-01-17 09:10:28 UTC) #12
haraken
On 2017/01/17 09:10:28, fs wrote: > On 2017/01/17 at 08:13:12, joelhockey wrote: > > Haraken, ...
3 years, 11 months ago (2017-01-17 09:17:36 UTC) #13
joelhockey
On 2017/01/17 at 09:17:36, haraken wrote: > On 2017/01/17 09:10:28, fs wrote: > > On ...
3 years, 11 months ago (2017-01-19 04:49:45 UTC) #16
haraken
LGTM
3 years, 11 months ago (2017-01-19 06:38:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2637833003/40001
3 years, 11 months ago (2017-01-19 09:02:02 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/45ea2ba70b8a87d266cceb0dc7f824a21da74da0
3 years, 11 months ago (2017-01-19 10:17:03 UTC) #23
fs
(Looks like I fell out of the CC-list here, don't know how that happened... so ...
3 years, 11 months ago (2017-01-19 11:56:11 UTC) #24
fs
3 years, 11 months ago (2017-01-19 11:56:40 UTC) #25
joelhockey
On 2017/01/19 at 11:56:40, fs wrote: > Sorry fs and haraken, I wouldn't have submitted ...
3 years, 11 months ago (2017-01-19 12:35:56 UTC) #27
fs
On 2017/01/19 at 12:35:56, joelhockey wrote: > On 2017/01/19 at 11:56:40, fs wrote: > > ...
3 years, 11 months ago (2017-01-19 13:17:07 UTC) #28
haraken
On 2017/01/19 13:17:07, fs wrote: > On 2017/01/19 at 12:35:56, joelhockey wrote: > > On ...
3 years, 11 months ago (2017-01-19 13:47:14 UTC) #29
foolip
3 years, 11 months ago (2017-01-24 10:28:21 UTC) #30
Message was sent while issue was closed.
On 2017/01/19 13:47:14, haraken wrote:
> On 2017/01/19 13:17:07, fs wrote:
> > On 2017/01/19 at 12:35:56, joelhockey wrote:
> > > On 2017/01/19 at 11:56:40, fs wrote:
> > > > 
> > > 
> > > Sorry fs and haraken, I wouldn't have submitted if I thought that there
was
> > still discussion to complete.
> > > Do let me know if I should either revert this, or if there is a specific
> > further change I should make.
> > 
> > As I mentioned, this is fine, but it is also roughly as "wrong" as before. I
> > guess someone (TM) will have to fix it (make it approximate the spec better)
> at
> > some point...
> 
> Shall we add a comment and mention that that should use a microtask at the
> moment?

Sorry I didn't respond earlier, but that would be good. In the spec this is
https://html.spec.whatwg.org/multipage/embedded-content.html#start-the-track-...
so a microtask would be correct. joelhockey@, I think the change itself should
be quite trivial, if you want to give it a try. I think it should be possible to
test like this:

<!DOCTYPE html>
<video></video>
<script>
async_test(t => {
  var video = document.querySelector('video');
  var track = document.createElement('track');
  track.src = 'foo.vtt'; // doesn't need to actually exist
  video.appendChild(track);
  assert_equals(track.readyState, HTMLTrackElement.NONE);

  // The "start the track processing model" algorithm should run at next stable
state
  Promise.resolve().then(t.step_func_done(() => {
    assert_equals(track.readyState, HTMLTrackElement.LOADING);
  }));
});
</script>

If it doesn't seem to work and you have better things to do, maybe you can file
a bug and link to it?

Powered by Google App Engine
This is Rietveld 408576698