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

Issue 2297853006: Fix 'will execute script' condition for creating custom elements in imports (Closed)

Created:
4 years, 3 months ago by kochi
Modified:
4 years, 3 months ago
CC:
blink-reviews, chromium-reviews, kojii, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 'will execute script' condition for creating custom elements in imports This CL fixes the 'will execute script' flag calculation by fixing the definition lookup in HTMLConstructionSite::lookUpCustomElementDefinition(), and attributeChangedCallback() will be invoked properly for custom elements parsed and created synchronously in imports. Upgrade case is not affected by this bug. BUG=642839 Committed: https://crrev.com/94d61015c751d3d5c6ca9deedb0637cfcbbb1283 Cr-Commit-Position: refs/heads/master@{#416176}

Patch Set 1 #

Patch Set 2 : Fix and update test #

Total comments: 4

Patch Set 3 : Fix for dominicc's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/custom-elements/imports/resources/attribute-parsercreate.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/custom-elements/imports/resources/attribute-upgrade.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (15 generated)
kochi
Dominic, could you take a look?
4 years, 3 months ago (2016-09-01 05:53:53 UTC) #9
dominicc (has gone to gerrit)
lgtm Nice work; nice test. LGTM modulo nits inline. https://codereview.chromium.org/2297853006/diff/20001/third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html File third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html (right): https://codereview.chromium.org/2297853006/diff/20001/third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html#newcode31 third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html:31: ...
4 years, 3 months ago (2016-09-02 01:01:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2297853006/40001
4 years, 3 months ago (2016-09-02 01:54:34 UTC) #16
kochi
Thanks for the review. https://codereview.chromium.org/2297853006/diff/20001/third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html File third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html (right): https://codereview.chromium.org/2297853006/diff/20001/third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html#newcode31 third_party/WebKit/LayoutTests/custom-elements/imports/attribute-changed-callback.html:31: 'attributeChangedCallback should have called for ...
4 years, 3 months ago (2016-09-02 02:59:15 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-02 03:12:36 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 03:14:56 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/94d61015c751d3d5c6ca9deedb0637cfcbbb1283
Cr-Commit-Position: refs/heads/master@{#416176}

Powered by Google App Engine
This is Rietveld 408576698