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

Issue 22320009: Don't come undone when undoing the editing of a Custom Element. (Closed)

Created:
7 years, 4 months ago by dominicc (has gone to gerrit)
Modified:
7 years, 4 months ago
CC:
yosin_UTC9, blink-reviews, webcomponents-bugzilla_chromium.org, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Don't come undone when undoing the editing of a Custom Element. CustomElementRegistrationContext hitherto asserted that the parser would only call setAttribute for the "is" attribute once (or for any given attribute; but the "is" attribute has special significance because it governs Custom Element type extensions). However undoing ReplaceNodeWithSpan may pull an existing Custom Element out and "parser set" the "is" attribute a second time. This change weakens the assertion and simply makes subsequent sets of "is" a no-op. This defect was found by the fuzzing described in <http://crbug.com/234509#c40>;. BUG=234509 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155612

Patch Set 1 #

Total comments: 3

Patch Set 2 : Adds exposition of what the test does. #

Patch Set 3 : Resolve conflicts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -4 lines) Patch
A LayoutTests/fast/dom/custom/type-extension-undo-assert.html View 1 1 chunk +22 lines, -0 lines 0 comments Download
A + LayoutTests/fast/dom/custom/type-extension-undo-assert-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/CustomElementRegistrationContext.cpp View 1 2 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dominicc (has gone to gerrit)
yutak: PTAL yosin: FYI since yr ramping up on editing
7 years, 4 months ago (2013-08-06 08:24:10 UTC) #1
Yuta Kitamura
C++ code looks okay but I'm not sure how the added test would invoke the ...
7 years, 4 months ago (2013-08-06 09:00:02 UTC) #2
yosin_UTC9
https://codereview.chromium.org/22320009/diff/1/LayoutTests/fast/dom/custom/type-extension-undo-assert.html File LayoutTests/fast/dom/custom/type-extension-undo-assert.html (right): https://codereview.chromium.org/22320009/diff/1/LayoutTests/fast/dom/custom/type-extension-undo-assert.html#newcode5 LayoutTests/fast/dom/custom/type-extension-undo-assert.html:5: description('Tests that execCommand undo doesn\'t hork custom elements'); s/hork/fork/
7 years, 4 months ago (2013-08-06 09:06:06 UTC) #3
Yuta Kitamura
https://codereview.chromium.org/22320009/diff/1/LayoutTests/fast/dom/custom/type-extension-undo-assert.html File LayoutTests/fast/dom/custom/type-extension-undo-assert.html (right): https://codereview.chromium.org/22320009/diff/1/LayoutTests/fast/dom/custom/type-extension-undo-assert.html#newcode5 LayoutTests/fast/dom/custom/type-extension-undo-assert.html:5: description('Tests that execCommand undo doesn\'t hork custom elements'); On ...
7 years, 4 months ago (2013-08-06 09:28:19 UTC) #4
dominicc (has gone to gerrit)
Yes, I really meant hork. PTAL--added some commentary about the genesis and mechanism of this ...
7 years, 4 months ago (2013-08-06 10:07:55 UTC) #5
Yuta Kitamura
This is much clearer! LGTM.
7 years, 4 months ago (2013-08-06 10:18:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominicc@chromium.org/22320009/12001
7 years, 4 months ago (2013-08-06 11:19:26 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 13:58:21 UTC) #8
Message was sent while issue was closed.
Change committed as 155612

Powered by Google App Engine
This is Rietveld 408576698