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

Issue 961243002: Do not reset controls upon removing media element from the DOM. (Closed)

Created:
5 years, 10 months ago by sof
Modified:
5 years, 9 months ago
Reviewers:
philipj_slow, fs
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190986

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -3 lines) Patch
A LayoutTests/media/remove-from-document-config-controls-no-crash.html View 1 chunk +43 lines, -0 lines 7 comments Download
A + LayoutTests/media/remove-from-document-config-controls-no-crash-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
sof
Please take a look.
5 years, 10 months ago (2015-02-27 10:24:34 UTC) #2
fs
lgtm
5 years, 10 months ago (2015-02-27 10:31:17 UTC) #3
philipj_slow
A conservative fix, LGTM with confusion. https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html File LayoutTests/media/remove-from-document-config-controls-no-crash.html (right): https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html#newcode35 LayoutTests/media/remove-from-document-config-controls-no-crash.html:35: Array.prototype.forEach.call(node.attributes, function (n) ...
5 years, 10 months ago (2015-02-27 10:35:29 UTC) #4
sof
https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html File LayoutTests/media/remove-from-document-config-controls-no-crash.html (right): https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html#newcode35 LayoutTests/media/remove-from-document-config-controls-no-crash.html:35: Array.prototype.forEach.call(node.attributes, function (n) { node[n && n.localName] = 2; ...
5 years, 9 months ago (2015-02-27 10:39:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/961243002/1
5 years, 9 months ago (2015-02-27 10:58:52 UTC) #7
philipj_slow
https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html File LayoutTests/media/remove-from-document-config-controls-no-crash.html (right): https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html#newcode35 LayoutTests/media/remove-from-document-config-controls-no-crash.html:35: Array.prototype.forEach.call(node.attributes, function (n) { node[n && n.localName] = 2; ...
5 years, 9 months ago (2015-02-27 11:04:33 UTC) #8
sof
https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html File LayoutTests/media/remove-from-document-config-controls-no-crash.html (right): https://codereview.chromium.org/961243002/diff/1/LayoutTests/media/remove-from-document-config-controls-no-crash.html#newcode35 LayoutTests/media/remove-from-document-config-controls-no-crash.html:35: Array.prototype.forEach.call(node.attributes, function (n) { node[n && n.localName] = 2; ...
5 years, 9 months ago (2015-02-27 11:16:34 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-02-27 11:41:33 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190986

Powered by Google App Engine
This is Rietveld 408576698