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

Issue 330593005: HTMLMediaElement::webMediaPlayer() should never be null if m_readyState >= HAVE_METADATA (media eng… (Closed)

Created:
6 years, 6 months ago by Srirama
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

HTMLMediaElement::webMediaPlayer() should never be null if m_readyState >= HAVE_METADATA (media engine error case) BUG=382721 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176993

Patch Set 1 #

Patch Set 2 : Fixed review comments #

Patch Set 3 : Added test case #

Patch Set 4 : Fixed review comments #

Total comments: 2

Patch Set 5 : Removed emptied event #

Total comments: 16

Patch Set 6 : Fixed review comments #

Total comments: 2

Patch Set 7 : updated title of the test case #

Patch Set 8 : updated as per comments #

Patch Set 9 : Updated failing mediasource test #

Total comments: 8

Patch Set 10 : updated as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -16 lines) Patch
M LayoutTests/http/tests/media/media-source/mediasource-errors.html View 1 2 3 4 5 6 7 8 9 4 chunks +2 lines, -10 lines 0 comments Download
A LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/video-load-metadata-decode-error.html View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/video-load-metadata-decode-error-expected.txt View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Srirama
This is one of the cases where webMediaPlayer() will be null when m_readyState >= HAVE_METADATA. ...
6 years, 6 months ago (2014-06-12 14:03:41 UTC) #1
philipj_slow
Since mediaEngineError() implements two algorithms at once, I think it would be slightly better to ...
6 years, 6 months ago (2014-06-13 14:15:55 UTC) #2
Srirama
Updated code as per review comments, will check on test cases part.
6 years, 6 months ago (2014-06-13 15:00:28 UTC) #3
Srirama
On 2014/06/13 14:15:55, philipj wrote: > Since mediaEngineError() implements two algorithms at once, I think ...
6 years, 6 months ago (2014-06-13 15:02:31 UTC) #4
acolwell GONE FROM CHROMIUM
On 2014/06/13 15:02:31, Srirama wrote: > On 2014/06/13 14:15:55, philipj wrote: > > Since mediaEngineError() ...
6 years, 6 months ago (2014-06-13 17:11:51 UTC) #5
Srirama
On 2014/06/13 17:11:51, acolwell wrote: > On 2014/06/13 15:02:31, Srirama wrote: > > On 2014/06/13 ...
6 years, 6 months ago (2014-06-13 17:37:33 UTC) #6
Srirama
Added test case. Tried so hard and finally able to write a test for decode ...
6 years, 6 months ago (2014-06-17 15:21:15 UTC) #7
philipj_slow
While reviewing this I noticed that what the spec currently says doesn't actually make sense: ...
6 years, 6 months ago (2014-06-18 11:36:00 UTC) #8
Srirama
@philipj: you are right, the condition m_readyState == HAVE_NOTHING will never come in mediaEngineError(). I ...
6 years, 6 months ago (2014-06-18 13:45:14 UTC) #9
philipj_slow
Looks good to me, although there is some risk that Hixie will fix it some ...
6 years, 6 months ago (2014-06-18 13:52:14 UTC) #10
Srirama
Removed the unnecessary emptied event. https://codereview.chromium.org/330593005/diff/130001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (left): https://codereview.chromium.org/330593005/diff/130001/Source/core/html/HTMLMediaElement.cpp#oldcode1481 Source/core/html/HTMLMediaElement.cpp:1481: scheduleEvent(EventTypeNames::emptied); On 2014/06/18 13:52:14, ...
6 years, 6 months ago (2014-06-18 14:15:08 UTC) #11
philipj_slow
I suspect that these changes will require updating some tests, so I started the try ...
6 years, 6 months ago (2014-06-18 14:39:09 UTC) #12
philipj_slow
Huh, the bots looks happy. I guess there was no test coverage, then :/
6 years, 6 months ago (2014-06-18 15:27:36 UTC) #13
Srirama
On 2014/06/18 15:27:36, philipj wrote: > Huh, the bots looks happy. I guess there was ...
6 years, 6 months ago (2014-06-18 16:09:34 UTC) #14
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi File LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi (right): https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi#newcode14 LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi:14: my $type = $query->param('type') || "video/mp4"; nit: Please remove ...
6 years, 6 months ago (2014-06-18 23:46:27 UTC) #15
Srirama
https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi File LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi (right): https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi#newcode14 LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi:14: my $type = $query->param('type') || "video/mp4"; I will remove ...
6 years, 6 months ago (2014-06-19 03:35:16 UTC) #16
Srirama
Updated as per review comments. PTAL
6 years, 6 months ago (2014-06-19 07:20:37 UTC) #17
philipj_slow
https://codereview.chromium.org/330593005/diff/230001/LayoutTests/http/tests/media/video-load-metadata-decode-error.html File LayoutTests/http/tests/media/video-load-metadata-decode-error.html (right): https://codereview.chromium.org/330593005/diff/230001/LayoutTests/http/tests/media/video-load-metadata-decode-error.html#newcode3 LayoutTests/http/tests/media/video-load-metadata-decode-error.html:3: <title>throttled loading metadata</title> I think you forgot to update ...
6 years, 6 months ago (2014-06-19 13:28:38 UTC) #18
Srirama
Thanks for pointing :), updated the title now. https://codereview.chromium.org/330593005/diff/230001/LayoutTests/http/tests/media/video-load-metadata-decode-error.html File LayoutTests/http/tests/media/video-load-metadata-decode-error.html (right): https://codereview.chromium.org/330593005/diff/230001/LayoutTests/http/tests/media/video-load-metadata-decode-error.html#newcode3 LayoutTests/http/tests/media/video-load-metadata-decode-error.html:3: <title>throttled ...
6 years, 6 months ago (2014-06-19 13:34:48 UTC) #19
Srirama
PTAL
6 years, 6 months ago (2014-06-21 01:45:34 UTC) #20
acolwell GONE FROM CHROMIUM
lgtm % comment https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi File LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi (right): https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi#newcode14 LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi:14: my $type = $query->param('type') || "video/mp4"; ...
6 years, 6 months ago (2014-06-23 16:35:28 UTC) #21
Srirama
On 2014/06/23 16:35:28, acolwell wrote: > lgtm % comment > > https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi > File LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi ...
6 years, 6 months ago (2014-06-23 16:38:25 UTC) #22
Srirama
updated with http status line incase video type is missing. https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi File LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi (right): https://codereview.chromium.org/330593005/diff/170001/LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi#newcode14 ...
6 years, 6 months ago (2014-06-24 05:23:02 UTC) #23
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 6 months ago (2014-06-24 05:23:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srirama.m@samsung.com/330593005/270001
6 years, 6 months ago (2014-06-24 05:23:51 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-06-24 06:30:40 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 06:56:32 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/21135)
6 years, 6 months ago (2014-06-24 06:56:33 UTC) #28
Srirama
Updated the test case mediasource-errors.html as mediasource is not closed on decode/network error. PTAL
6 years, 6 months ago (2014-06-24 12:36:03 UTC) #29
acolwell GONE FROM CHROMIUM
lgtm % comments https://codereview.chromium.org/330593005/diff/290001/LayoutTests/http/tests/media/media-source/mediasource-errors.html File LayoutTests/http/tests/media/media-source/mediasource-errors.html (left): https://codereview.chromium.org/330593005/diff/290001/LayoutTests/http/tests/media/media-source/mediasource-errors.html#oldcode107 LayoutTests/http/tests/media/media-source/mediasource-errors.html:107: test.expectEvent(mediaSource, "sourceended", "mediaSource ended."); This line ...
6 years, 5 months ago (2014-06-25 16:20:08 UTC) #30
Srirama
Updated before patch submission. https://codereview.chromium.org/330593005/diff/290001/LayoutTests/http/tests/media/media-source/mediasource-errors.html File LayoutTests/http/tests/media/media-source/mediasource-errors.html (left): https://codereview.chromium.org/330593005/diff/290001/LayoutTests/http/tests/media/media-source/mediasource-errors.html#oldcode107 LayoutTests/http/tests/media/media-source/mediasource-errors.html:107: test.expectEvent(mediaSource, "sourceended", "mediaSource ended."); On ...
6 years, 5 months ago (2014-06-26 09:37:08 UTC) #31
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 5 months ago (2014-06-26 09:37:22 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srirama.m@samsung.com/330593005/310001
6 years, 5 months ago (2014-06-26 09:38:33 UTC) #33
commit-bot: I haz the power
6 years, 5 months ago (2014-06-26 16:30:09 UTC) #34
Message was sent while issue was closed.
Change committed as 176993

Powered by Google App Engine
This is Rietveld 408576698