Do not reset controls upon removing media element from the DOM.

Upon removal of a media element, arrange for it to be removed from the
document before resetting its media controls. If the controls are
showing, they'll be hidden but not reset. A full reset of these controls
while a DOM removal operation is in progress may trigger nested event
delivery and mutate its attributes in unsupported ways.

R=fs@opera.com,philipj@opera.com
BUG=462046

Review URL: https://codereview.chromium.org/961243002

git-svn-id: svn://svn.chromium.org/blink/trunk@190986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: e4273731f3d2fd75c15917dc8e024045359bb7ad
  1. third_party/