DescriptionFix 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 #
Messages
Total messages: 11 (3 generated)
|