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

Issue 2021573002: MSE: Reset delaying-the-load-event-flag on attachment (Closed)

Created:
4 years, 6 months ago by wolenetz
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, mlamouri+watch-blink_chromium.org, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MSE: Reset delaying-the-load-event-flag on attachment Currently, the earliest non-error case reset of media element's delaying-the-load-event-flag when MSE is attached occurs at either the 'stalled' event scheduling or once first reaching >= HAVE_CURRENT_DATA. This change makes Blink compliant with recent MSE spec clarification [1] that resets this flag immediately upon MSE attachment. Non-MSE media element delaying-the-load-event-flag behavior remains unchanged. [1] https://github.com/w3c/media-source/pull/85 TEST=http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html BUG=615481 Committed: https://crrev.com/ea101249f079972e2dd6b6448bb73c1b0437c8d8 Cr-Commit-Position: refs/heads/master@{#401516}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Addressed mlamouri's comment intent: load must occur before sourceopen in test #

Total comments: 9

Patch Set 4 : rebase #

Patch Set 5 : Addressed foolip@'s nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021573002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2021573002/1
4 years, 6 months ago (2016-05-27 22:58:41 UTC) #2
wolenetz
Please take a look: mlamouri@: OWNER review of HTMLME.cpp, committer review of the layout test ...
4 years, 6 months ago (2016-05-27 23:00:18 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-28 00:39:08 UTC) #5
mlamouri (slow - plz ping)
lgtm with comment applied. https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html (right): https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html#newcode28 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html:28: // Let any pending "load" ...
4 years, 6 months ago (2016-05-31 15:30:48 UTC) #6
wolenetz
https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html (right): https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html#newcode28 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html:28: // Let any pending "load" event also fire. Then ...
4 years, 6 months ago (2016-05-31 17:50:53 UTC) #7
wolenetz
On 2016/05/31 17:50:53, wolenetz_slow_reviews wrote: > https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html > File > third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html > (right): > > ...
4 years, 6 months ago (2016-05-31 18:01:20 UTC) #8
wolenetz
https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html (right): https://codereview.chromium.org/2021573002/diff/1/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html#newcode28 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html:28: // Let any pending "load" event also fire. Then ...
4 years, 6 months ago (2016-05-31 18:08:36 UTC) #9
mlamouri (slow - plz ping)
If the events are enqueued in the same task source in a specific order, I ...
4 years, 6 months ago (2016-06-03 14:39:09 UTC) #10
wolenetz
On 2016/06/03 14:39:09, Mounir Lamouri (slow) wrote: > If the events are enqueued in the ...
4 years, 6 months ago (2016-06-15 20:27:37 UTC) #11
wolenetz
On 2016/06/15 20:27:37, wolenetz_slow_reviews wrote: > On 2016/06/03 14:39:09, Mounir Lamouri (slow) wrote: > > ...
4 years, 6 months ago (2016-06-15 20:58:47 UTC) #12
wolenetz
On 2016/06/15 20:58:47, wolenetz_slow_reviews wrote: > On 2016/06/15 20:27:37, wolenetz_slow_reviews wrote: > > On 2016/06/03 ...
4 years, 6 months ago (2016-06-15 21:55:18 UTC) #13
wolenetz
On 2016/06/15 21:55:18, wolenetz_slow_reviews wrote: > On 2016/06/15 20:58:47, wolenetz_slow_reviews wrote: > > On 2016/06/15 ...
4 years, 6 months ago (2016-06-15 21:57:01 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021573002/40001
4 years, 6 months ago (2016-06-15 22:09:05 UTC) #16
wolenetz
Please take a look: mlamouri@: re-review the layout-test please foolip@: please review all per our ...
4 years, 6 months ago (2016-06-15 22:11:56 UTC) #17
wolenetz
On 2016/06/15 22:11:56, wolenetz_slow_reviews wrote: > Please take a look: > > mlamouri@: re-review the ...
4 years, 6 months ago (2016-06-15 22:13:27 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-16 01:06:06 UTC) #22
wolenetz
On 2016/06/15 22:11:56, wolenetz wrote: > Please take a look: > > mlamouri@: re-review the ...
4 years, 6 months ago (2016-06-17 17:58:17 UTC) #23
foolip
lgtm % nits, but it looks like more work is needed on the spec here, ...
4 years, 6 months ago (2016-06-20 09:30:12 UTC) #24
wolenetz
Thanks for the reviews. https://codereview.chromium.org/2021573002/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html (right): https://codereview.chromium.org/2021573002/diff/40001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html#newcode16 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html:16: }), false); On 2016/06/20 09:30:12, ...
4 years, 6 months ago (2016-06-21 22:25:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021573002/80001
4 years, 6 months ago (2016-06-21 22:26:31 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/242842)
4 years, 6 months ago (2016-06-22 01:38:19 UTC) #30
mlamouri (slow - plz ping)
still lgtm style: can you remove the <html>, <head> and <body> elements? Make everything with ...
4 years, 6 months ago (2016-06-22 09:08:27 UTC) #31
wolenetz
On 2016/06/22 09:08:27, Mounir Lamouri (slow) wrote: > still lgtm > > style: can you ...
4 years, 6 months ago (2016-06-22 21:34:13 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2021573002/80001
4 years, 6 months ago (2016-06-22 21:36:00 UTC) #34
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-23 01:53:31 UTC) #36
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ea101249f079972e2dd6b6448bb73c1b0437c8d8 Cr-Commit-Position: refs/heads/master@{#401516}
4 years, 6 months ago (2016-06-23 01:57:23 UTC) #38
wolenetz
4 years, 3 months ago (2016-09-02 23:00:57 UTC) #39
Message was sent while issue was closed.
https://codereview.chromium.org/2021573002/diff/40001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html
(right):

https://codereview.chromium.org/2021573002/diff/40001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-stops-delaying-load-event.html:32:
assert_true(receivedLoadEvent, "load event should have been received first");
On 2016/06/21 22:25:47, wolenetz wrote:
> On 2016/06/20 09:30:12, Philip Jägenstedt wrote:
> > It looks to me like the implementation would first fire the window load
event
> > and then the mediaSource's sourceopen event, but the spec requires the
> opposite.
> > 
> > That's because https://html.spec.whatwg.org/#delay-the-load-event waits
until
> > after the task that causes the load event to not be delayed before queuing
the
> > task, but Document::checkLoadEventSoon() would start that timer while the
task
> > is still running.
> > 
> > This seems like a detail that could easily be different in different
> > implementations, so sharing a test like this with others would be great :)
> 
> Acknowledged.

I've filed https://crbug.com/643846 to follow-up on at least Chrome's impl which
mismatches spec.

Powered by Google App Engine
This is Rietveld 408576698