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

Issue 2048343002: Introduce CustomElementRegistry#whenDefined() method (Closed)

Created:
4 years, 6 months ago by yosin_UTC9
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

Introduce CustomElementRegistry#whenDefined() method This patch introduces |CustomElementRegistry#whenDefined()| as specified in [1], and makes |CustomElementRegistry::define()| to resolve a promise associated to newly defined name. [1] // https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementsregistry-whendefined BUG=594918 TEST=LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html Committed: https://crrev.com/52523d4e58d99cdb768791bf9ac532c917522460 Cr-Commit-Position: refs/heads/master@{#399171}

Patch Set 1 : 2016-06-09T18:55:30 #

Total comments: 4

Patch Set 2 : 2016-06-10T16:48:25 #

Patch Set 3 : 2016-06-10T19:03:11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html View 1 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.h View 4 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp View 1 6 chunks +44 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
yosin_UTC9
PTAL Implement CustomElementsRegistry#whenDefined() in "CustomElementsRegistry.cpp". I think it is OK to using ScriptPromise in core/ ...
4 years, 6 months ago (2016-06-09 10:05:17 UTC) #3
dominicc (has gone to gerrit)
lgtm Thanks for working on this; very nice. Some comments inline. https://codereview.chromium.org/2048343002/diff/1/third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html File third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html (right): ...
4 years, 6 months ago (2016-06-10 06:20:57 UTC) #4
yosin_UTC9
On 2016/06/10 at 06:20:57, dominicc wrote: > lgtm > > Thanks for working on this; ...
4 years, 6 months ago (2016-06-10 07:41:00 UTC) #5
yosin_UTC9
Thanks for review! Updated to follow comments. Committing... https://codereview.chromium.org/2048343002/diff/1/third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html File third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html (right): https://codereview.chromium.org/2048343002/diff/1/third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html#newcode40 third_party/WebKit/LayoutTests/custom-elements/spec/custom-elements-registry/when_defined.html:40: }).catch(reason ...
4 years, 6 months ago (2016-06-10 07:52:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048343002/20001
4 years, 6 months ago (2016-06-10 07:52:53 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/242502)
4 years, 6 months ago (2016-06-10 09:24:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048343002/40001
4 years, 6 months ago (2016-06-10 10:05:57 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/85757)
4 years, 6 months ago (2016-06-10 11:03:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2048343002/40001
4 years, 6 months ago (2016-06-10 12:30:26 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-10 13:25:32 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 13:26:37 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/52523d4e58d99cdb768791bf9ac532c917522460
Cr-Commit-Position: refs/heads/master@{#399171}

Powered by Google App Engine
This is Rietveld 408576698