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

Issue 2067853002: Upgrade custom elements when inserting a node (Closed)

Created:
4 years, 6 months ago by kojii
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upgrade custom elements when inserting a node This patch tries to upgrade[1] custom elements when inserting a node[2]. With this change, setting to innerHTML/outerHTML enqueues upgrade reactions if the definition is not null, but then Element::insertedInto() enqueues upgrade reactions again. Added the guard in CustomElementDefinition::upgrade() for such cases. [1] https://html.spec.whatwg.org/multipage/scripting.html#concept-try-upgrade [2] https://dom.spec.whatwg.org/#concept-node-insert BUG=594918 Committed: https://crrev.com/efb4249e4e385284b1f320e9642a50fb47f2217e Cr-Commit-Position: refs/heads/master@{#400401}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : rebase #

Patch Set 4 : Minor editorial #

Total comments: 5

Patch Set 5 : dominicc nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElement.cpp View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeReaction.cpp View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 25 (13 generated)
kojii
PTAL.
4 years, 6 months ago (2016-06-15 07:32:56 UTC) #4
dominicc (has gone to gerrit)
lgtm LGTM, some suggestions inline. https://codereview.chromium.org/2067853002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html File third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html (right): https://codereview.chromium.org/2067853002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html#newcode15 third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html:15: Delete this line? https://codereview.chromium.org/2067853002/diff/60001/third_party/WebKit/LayoutTests/custom-elements/spec/insert-a-node-try-to-upgrade.html#newcode18 ...
4 years, 6 months ago (2016-06-16 05:26:41 UTC) #6
kojii
All done, thanks for the review!
4 years, 6 months ago (2016-06-16 06:04:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067853002/80001
4 years, 6 months ago (2016-06-16 06:04:50 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/240016)
4 years, 6 months ago (2016-06-16 09:19:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067853002/80001
4 years, 6 months ago (2016-06-16 09:23:26 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/240121)
4 years, 6 months ago (2016-06-16 13:11:58 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067853002/80001
4 years, 6 months ago (2016-06-17 04:29:33 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/240736)
4 years, 6 months ago (2016-06-17 07:22:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067853002/80001
4 years, 6 months ago (2016-06-17 07:39:42 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-17 08:50:23 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 08:51:39 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/efb4249e4e385284b1f320e9642a50fb47f2217e
Cr-Commit-Position: refs/heads/master@{#400401}

Powered by Google App Engine
This is Rietveld 408576698