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

Issue 575563002: Fix adopting a video element with controls (Closed)

Created:
6 years, 3 months ago by aberent
Modified:
6 years, 3 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, philipj_slow, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix adopting a video element with controls This CL moves the creation of video controls from HTMLMediaElement::prepareForLoad() to HTMLMediaElement::loadInternal(). This is needed because Blink forbids synchonous dispatch of events within Node::appendChild() but creating the controls causes events to be dispatched synchronously, hence causing a crash if the controls are created within appendChild(). appendChild() calls prepareForLoad() synchronously, but calls loadInternal() asynchronously. This CL also adds a new layout test testing appending video elements with controls. BUG=414373 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182065

Patch Set 1 #

Patch Set 2 : Fix the bug #

Patch Set 3 : Fix TestExpectations and add expected test results #

Total comments: 4

Patch Set 4 : Fix philipj@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
A LayoutTests/media/adopt-node-video-controls-crash.html View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
aberent
6 years, 3 months ago (2014-09-15 18:44:00 UTC) #2
aberent
philipj@opera.com: Please review changes. I would be greatful for a quick review, since this is ...
6 years, 3 months ago (2014-09-16 10:26:48 UTC) #4
aberent
Email title is wrong. This is actually a fix for the problem, not just a ...
6 years, 3 months ago (2014-09-16 10:28:49 UTC) #5
philipj_slow
https://codereview.chromium.org/575563002/diff/40001/LayoutTests/media/adopt-node-video-controls-crash.html File LayoutTests/media/adopt-node-video-controls-crash.html (right): https://codereview.chromium.org/575563002/diff/40001/LayoutTests/media/adopt-node-video-controls-crash.html#newcode59 LayoutTests/media/adopt-node-video-controls-crash.html:59: <div id=parent><video controls id=vid></video></div> This test is much bigger ...
6 years, 3 months ago (2014-09-16 11:59:39 UTC) #6
philipj_slow
LGTM to land with the mediaControls()->reset() fix even without an additional test as discussed on ...
6 years, 3 months ago (2014-09-16 13:58:44 UTC) #7
aberent
https://codereview.chromium.org/575563002/diff/40001/LayoutTests/media/adopt-node-video-controls-crash.html File LayoutTests/media/adopt-node-video-controls-crash.html (right): https://codereview.chromium.org/575563002/diff/40001/LayoutTests/media/adopt-node-video-controls-crash.html#newcode59 LayoutTests/media/adopt-node-video-controls-crash.html:59: <div id=parent><video controls id=vid></video></div> On 2014/09/16 11:59:39, philipj wrote: ...
6 years, 3 months ago (2014-09-16 14:45:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/575563002/60001
6 years, 3 months ago (2014-09-16 14:46:28 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 16:20:29 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 182065

Powered by Google App Engine
This is Rietveld 408576698