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

Issue 2161003002: CustomElements: upgrade element patch (Closed)

Created:
4 years, 5 months ago by davaajav
Modified:
4 years, 4 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@upgrade-element
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CustomElements: upgrade element patch, setting custom element state at the right time HTMLConstructor should change status to "custom" only when the definitions construction stack is empty, for example, when the constructor is invoked with new. If return value from the constructor is different from the custom element, upgrade should throw "InvalidStateError" DOMException. BUG=594918 Committed: https://crrev.com/d41cf519e902ba24e51317004dc36e14af64fc50 Cr-Commit-Position: refs/heads/master@{#409445}

Patch Set 1 #

Patch Set 2 : deleted comment #

Patch Set 3 : set state to custom after upgrade #

Patch Set 4 : workflow commit #

Patch Set 5 : test for step 8 #

Patch Set 6 : delete failure expectation #

Patch Set 7 : workflow commit #

Total comments: 12

Patch Set 8 : patch update #

Total comments: 5

Patch Set 9 : workflow commit #

Patch Set 10 : workflow commit #

Patch Set 11 : RegistryTest update, removed setting element`s state to custom in the test #

Messages

Total messages: 37 (15 generated)
davaajav
PTL
4 years, 5 months ago (2016-07-22 06:02:15 UTC) #3
dominicc (has gone to gerrit)
Good description. Could you change the first line though? Don't mention "C++", probably 95%+ of ...
4 years, 5 months ago (2016-07-22 07:34:08 UTC) #5
davaajav
PTL
4 years, 5 months ago (2016-07-22 09:00:12 UTC) #7
dominicc (has gone to gerrit)
LGTM with a couple of nits inline. https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/LayoutTests/custom-elements/spec/upgrade-element.html File third_party/WebKit/LayoutTests/custom-elements/spec/upgrade-element.html (right): https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/LayoutTests/custom-elements/spec/upgrade-element.html#newcode94 third_party/WebKit/LayoutTests/custom-elements/spec/upgrade-element.html:94: console.log(error_log.join(',')); We ...
4 years, 5 months ago (2016-07-22 09:11:26 UTC) #8
haraken
https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode255 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:255: executionContext->reportException(event, NotSharableCrossOrigin); Do we really need to report the ...
4 years, 5 months ago (2016-07-22 09:31:53 UTC) #10
dominicc (has gone to gerrit)
On 2016/07/22 at 09:31:53, haraken wrote: > https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): > > https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode255 ...
4 years, 5 months ago (2016-07-22 09:33:16 UTC) #11
domenic
On 2016/07/22 at 09:33:16, dominicc wrote: > On 2016/07/22 at 09:31:53, haraken wrote: > > ...
4 years, 5 months ago (2016-07-26 02:03:46 UTC) #12
kojii
Weren't we using setVerbose to"Report an exception"? What's different here?
4 years, 5 months ago (2016-07-26 02:39:28 UTC) #13
dominicc (has gone to gerrit)
On 2016/07/26 at 02:39:28, kojii wrote: > Weren't we using setVerbose to"Report an exception"? What's ...
4 years, 5 months ago (2016-07-26 05:27:10 UTC) #14
haraken
I looked at other implementations that use ErrorEvents and realized that it's common to dispatch ...
4 years, 4 months ago (2016-07-26 11:25:17 UTC) #15
haraken
https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2161003002/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode253 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:253: V8ErrorHandler::storeExceptionOnErrorEventWrapper(m_scriptState.get(), event, tryCatch.Exception(), m_scriptState->context()->Global()); BTW, is this line needed? ...
4 years, 4 months ago (2016-07-26 11:46:16 UTC) #16
dominicc (has gone to gerrit)
The spec says to throw, catch and report the exception so I think it is ...
4 years, 4 months ago (2016-07-26 12:59:33 UTC) #17
dominicc (has gone to gerrit)
The spec says to throw, catch and report the exception so I think it is ...
4 years, 4 months ago (2016-07-26 12:59:33 UTC) #18
dominicc (has gone to gerrit)
Sending this to trybots...
4 years, 4 months ago (2016-07-28 02:47:10 UTC) #20
davaajav
PTL
4 years, 4 months ago (2016-08-01 05:35:01 UTC) #24
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/2161003002/180001
4 years, 4 months ago (2016-08-01 11:08:00 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/272031)
4 years, 4 months ago (2016-08-01 12:16:35 UTC) #29
dominicc (has gone to gerrit)
eHi Davaa, It looks like this might have broke one of our C++ unit tests, ...
4 years, 4 months ago (2016-08-01 12:35:46 UTC) #30
dominicc (has gone to gerrit)
eHi Davaa, It looks like this might have broke one of our C++ unit tests, ...
4 years, 4 months ago (2016-08-01 12:35:46 UTC) #31
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/2161003002/200001
4 years, 4 months ago (2016-08-03 02:22:57 UTC) #34
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-03 03:40:07 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 03:42:04 UTC) #37
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d41cf519e902ba24e51317004dc36e14af64fc50
Cr-Commit-Position: refs/heads/master@{#409445}

Powered by Google App Engine
This is Rietveld 408576698