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

Issue 1881733004: MSE, MS, and any blob URL: Ignore preload 'none' on resource fetching (Closed)

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

Description

MSE, MS, and any blob URL: Ignore preload 'none' on resource fetching Prevents the usage of the optional resource fetch algorithm steps for when preload='none' in the MSE, MediaStream source, or any blob URL cases. Complies with recent update to MSE spec [1] and fixes the related crbug.com/539707. Includes test coverage for MSE and invalid (revoked MSE object) blob URLs. MediaStream test coverage is expected to come from later import of a new web-platform-tests [2]. [1] https://github.com/w3c/media-source/pull/64 [2] https://github.com/w3c/web-platform-tests/pull/2895 R=philipj@opera.com TBR=srirama.m@samsung.com BUG=539707 TEST=http/tests/media/media-source/mediasource-preload.html Committed: https://crrev.com/b16f202aa67513f74576312f7f8a3ad17f60458a Cr-Commit-Position: refs/heads/master@{#389649}

Patch Set 1 #

Patch Set 2 : Fixes indentation in test script #

Total comments: 19

Patch Set 3 : just rebase #

Patch Set 4 : Just rebase #

Patch Set 5 : Addressed comments in the *.html file; need to update .cpp and add MediaStream+invalidBlobURL tests #

Patch Set 6 : Updated .cpp, added invalidBlobURL tests, MediaStream test PR needs prep at web-platform-tests upst… #

Total comments: 6

Patch Set 7 : rebase #

Patch Set 8 : Address remainder of comments to date. Pending potential PR of MediaStream test to wpt [2] #

Total comments: 1

Patch Set 9 : Fix more '->" in the new test. [2] is now pending review at wpt. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 43 (19 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/1881733004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881733004/20001
4 years, 8 months ago (2016-04-12 23:07:03 UTC) #2
wolenetz
Please take a look. I think I've made this as surgical/precise as possible, with a ...
4 years, 8 months ago (2016-04-12 23:07:26 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 00:26:41 UTC) #6
wolenetz
friendly ping :)
4 years, 8 months ago (2016-04-13 17:42:54 UTC) #7
wolenetz
On 2016/04/13 17:42:54, wolenetz wrote: > friendly ping :) Spec change ([1] from the CL ...
4 years, 8 months ago (2016-04-13 23:13:34 UTC) #8
Srirama
https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html (right): https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html#newcode7 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html:7: <link rel='stylesheet' href='/w3c/resources/testharness.css'> nit: may be use double quotes ...
4 years, 8 months ago (2016-04-14 05:13:07 UTC) #11
philipj_slow
https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp File third_party/WebKit/Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode1098 third_party/WebKit/Source/core/html/HTMLMediaElement.cpp:1098: if (!m_mediaSource && effectivePreloadType() == WebMediaPlayer::PreloadNone) { I would ...
4 years, 8 months ago (2016-04-14 12:39:27 UTC) #12
philipj_slow
A similar test for MediaStream and an invalid blob: URL would also be good if ...
4 years, 8 months ago (2016-04-14 13:16:30 UTC) #13
wolenetz
Please take a look. I plan to prep a PR for the w3c/web-platform-tests/media-stream for adding ...
4 years, 8 months ago (2016-04-21 21:37:31 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881733004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881733004/100001
4 years, 8 months ago (2016-04-21 23:42:37 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 00:55:53 UTC) #19
philipj_slow
lgtm % nits https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html (right): https://codereview.chromium.org/1881733004/diff/20001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html#newcode38 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-attach-preload.html:38: test.waitForExpectedEvents(function() On 2016/04/21 21:37:30, wolenetz wrote: ...
4 years, 8 months ago (2016-04-22 09:22:15 UTC) #20
wolenetz
Thanks for review. I'll get to work on the wpt upstream PR (and fill in ...
4 years, 8 months ago (2016-04-25 19:43:21 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881733004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881733004/140001
4 years, 8 months ago (2016-04-25 19:44:02 UTC) #23
wolenetz
srirama.m@: did you want to take another look at this?
4 years, 8 months ago (2016-04-25 20:07:51 UTC) #24
wolenetz
https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html File third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html (right): https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html#newcode74 third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html:74: errorWithPreloadTest('auto', 'blob:a'); Ugh. It looks like I need to ...
4 years, 8 months ago (2016-04-25 20:41:05 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 21:28:30 UTC) #27
wolenetz
Under the assumption that srirama.m@'s earlier comments were drive-by nits, I'll land this shortly with ...
4 years, 8 months ago (2016-04-25 22:47:01 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881733004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881733004/160001
4 years, 8 months ago (2016-04-25 22:48:43 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-26 01:09:46 UTC) #38
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/b16f202aa67513f74576312f7f8a3ad17f60458a Cr-Commit-Position: refs/heads/master@{#389649}
4 years, 8 months ago (2016-04-26 01:11:13 UTC) #40
Srirama
On 2016/04/25 20:41:05, wolenetz wrote: > https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html > File > third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html > (right): > > ...
4 years, 8 months ago (2016-04-26 05:03:18 UTC) #41
wolenetz
On 2016/04/26 05:03:18, Srirama wrote: > On 2016/04/25 20:41:05, wolenetz wrote: > > > https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html ...
4 years, 8 months ago (2016-04-26 17:56:35 UTC) #42
wolenetz
4 years, 8 months ago (2016-04-26 22:32:57 UTC) #43
Message was sent while issue was closed.
On 2016/04/26 17:56:35, wolenetz wrote:
> On 2016/04/26 05:03:18, Srirama wrote:
> > On 2016/04/25 20:41:05, wolenetz wrote:
> > >
> >
>
https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/Lay...
> > > File
> > >
> >
>
third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html
> > > (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1881733004/diff/140001/third_party/WebKit/Lay...
> > >
> >
>
third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-preload.html:74:
> > > errorWithPreloadTest('auto', 'blob:a');
> > > Ugh. It looks like I need to s/'/" a bit more here....
> > 
> > Sorry for the late response. I am GMT+5:30 time zone.
> > As long as we are consistent within script code it is fine. HTML and Script
> can
> > still use separate quotes (All double quotes in HTML and all single quotes
in
> > Script or vice versa, only thing is we need to be consistent within HTML and
> > Script).
> > All the changes look fine except a few nits though not so important. As
Philip
> > pointed out we can replace
> > 
> > *************************************************
> > test.step_func(function(event) { test.done(); });
> > *************************************************
> > 
> > with
> > 
> > **********************
> > test.step_func_done();
> > **********************
> > 
> > To make it more simpler and readable.
> > Never mind, i will take care of it :), anyway i am working on cleaning up of
> > media layout tests.
> 
> Thanks Srirama. test.done() is prevalent everywhere in media layout tests
> currently and I missed the shortcut again while addressing philipj@'s other
> comments.

There's at least one real issue here: test.fail() isn't defined. I'll post a CL
to fix that and include these other cleanups shortly.

Powered by Google App Engine
This is Rietveld 408576698