Description was changed from ========== WIP: script-callback BUG= ========== to ========== Implement script-side of callback ...
4 years, 6 months ago
(2016-06-14 04:34:07 UTC)
#1
Description was changed from
==========
WIP: script-callback
BUG=
==========
to
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
BUG=594918
==========
kojii
Description was changed from ========== Implement script-side of callback reactions for Custom Elements V1 This ...
4 years, 6 months ago
(2016-06-14 05:34:33 UTC)
#2
Description was changed from
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
BUG=594918
==========
to
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
==========
kojii
Description was changed from ========== Implement script-side of callback reactions for Custom Elements V1 This ...
4 years, 6 months ago
(2016-06-14 05:35:54 UTC)
#3
Description was changed from
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
==========
to
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The wpt test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
==========
4 years, 6 months ago
(2016-06-14 05:37:45 UTC)
#5
PTAL.
dominicc (has gone to gerrit)
Some comments inline. https://codereview.chromium.org/2060753002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp (right): https://codereview.chromium.org/2060753002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp#newcode154 third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp:154: m_observedAttributes = observedAttributes; We should make ...
4 years, 6 months ago
(2016-06-14 09:19:45 UTC)
#6
On 2016/06/14 at 15:22:51, haraken wrote: > On 2016/06/14 13:59:43, kojii wrote: > > Comment ...
4 years, 6 months ago
(2016-06-14 15:47:41 UTC)
#12
On 2016/06/14 at 15:22:51, haraken wrote:
> On 2016/06/14 13:59:43, kojii wrote:
> > Comment on V8StringOrNull below, others are done in PS5.
> >
> >
https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Sour...
> > File third_party/WebKit/Source/bindings/core/v8/V8Binding.h (right):
> >
> >
https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Sour...
> > third_party/WebKit/Source/bindings/core/v8/V8Binding.h:410: inline
> > v8::Local<v8::Value> v8StringOrNull(v8::Isolate* isolate, const
AtomicString&
> > string)
> > On 2016/06/14 at 11:39:24, haraken wrote:
> > > Do you really need this behavior? "string or null" is not a speced
behavior,
> > so we've tried hard to deprecate this method. And now you're introducing it
> > again :)
> >
> > The attributeChangedCallback spec says "null" for append/remove case:
> > https://dom.spec.whatwg.org/#concept-element-attributes-change-ext
> > and upgrade case:
> >
https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element
> >
> > The append/remove spec above also defines the use of "null" for
> > MutationObserver. I couldn't figure out how we convert this to v8::Null, but
we
> > seem to work as spec'ed:
> > http://jsbin.com/tajesihuga
>
> Good point. MutationObsever is doing the conversion here:
>
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/bindings/core/...
>
> >
> > Is this so special and different from other parts of the spec?
>
> Yeah, previously we had [TreatReturnedNullStringAsNull] IDL extended attribute
to indicate that a returned null string should be converted to null instead of
an empty string. foolip@ and jl@ tried hard to remove the IDL extended
attribute.
>
> +foolip +jl
Another case is Element.getAttribute(), where null indicates missing while empty
string is a bool attribute. When IDL is "DOMString?", this is string-or-null,
no?
Test here: http://output.jsbin.com/baqaci
haraken
On 2016/06/14 15:47:41, kojii wrote: > On 2016/06/14 at 15:22:51, haraken wrote: > > On ...
4 years, 6 months ago
(2016-06-14 23:51:55 UTC)
#13
On 2016/06/14 15:47:41, kojii wrote:
> On 2016/06/14 at 15:22:51, haraken wrote:
> > On 2016/06/14 13:59:43, kojii wrote:
> > > Comment on V8StringOrNull below, others are done in PS5.
> > >
> > >
>
https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Sour...
> > > File third_party/WebKit/Source/bindings/core/v8/V8Binding.h (right):
> > >
> > >
>
https://codereview.chromium.org/2060753002/diff/60001/third_party/WebKit/Sour...
> > > third_party/WebKit/Source/bindings/core/v8/V8Binding.h:410: inline
> > > v8::Local<v8::Value> v8StringOrNull(v8::Isolate* isolate, const
> AtomicString&
> > > string)
> > > On 2016/06/14 at 11:39:24, haraken wrote:
> > > > Do you really need this behavior? "string or null" is not a speced
> behavior,
> > > so we've tried hard to deprecate this method. And now you're introducing
it
> > > again :)
> > >
> > > The attributeChangedCallback spec says "null" for append/remove case:
> > > https://dom.spec.whatwg.org/#concept-element-attributes-change-ext
> > > and upgrade case:
> > >
>
https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element
> > >
> > > The append/remove spec above also defines the use of "null" for
> > > MutationObserver. I couldn't figure out how we convert this to v8::Null,
but
> we
> > > seem to work as spec'ed:
> > > http://jsbin.com/tajesihuga
> >
> > Good point. MutationObsever is doing the conversion here:
> >
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/bindings/core/...
> >
> > >
> > > Is this so special and different from other parts of the spec?
> >
> > Yeah, previously we had [TreatReturnedNullStringAsNull] IDL extended
attribute
> to indicate that a returned null string should be converted to null instead of
> an empty string. foolip@ and jl@ tried hard to remove the IDL extended
> attribute.
> >
> > +foolip +jl
>
> Another case is Element.getAttribute(), where null indicates missing while
empty
> string is a bool attribute. When IDL is "DOMString?", this is string-or-null,
> no?
ah, thanks for pointing it out! You're right. I remembered what we've done is to
replace [TreatReturnedNullStringAsNull] with DOMString?, let the IDL compiler
handle the conversion, and thus removed v8StringOrNull.
So the behavior here makes sense. LGTM. (Sorry about the noise!)
kojii
The CQ bit was checked by kojii@chromium.org
4 years, 6 months ago
(2016-06-15 04:20:30 UTC)
#14
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/200885)
4 years, 6 months ago
(2016-06-15 04:33:53 UTC)
#17
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/200906)
4 years, 6 months ago
(2016-06-15 05:03:52 UTC)
#21
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/239285)
4 years, 6 months ago
(2016-06-15 06:33:15 UTC)
#26
4 years, 6 months ago
(2016-06-15 08:32:19 UTC)
#29
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
commit-bot: I haz the power
Description was changed from ========== Implement script-side of callback reactions for Custom Elements V1 This ...
4 years, 6 months ago
(2016-06-15 08:35:29 UTC)
#30
Message was sent while issue was closed.
Description was changed from
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The wpt test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
==========
to
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The wpt test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
Committed: https://crrev.com/0dee3ec4784b2fb73d3aefaab1e00e92767ac767
Cr-Commit-Position: refs/heads/master@{#399858}
==========
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0dee3ec4784b2fb73d3aefaab1e00e92767ac767 Cr-Commit-Position: refs/heads/master@{#399858}
4 years, 6 months ago
(2016-06-15 08:35:30 UTC)
#31
Description was changed from ========== Implement script-side of callback reactions for Custom Elements V1 This ...
4 years, 6 months ago
(2016-06-15 08:38:14 UTC)
#32
Message was sent while issue was closed.
Description was changed from
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The wpt test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
Committed: https://crrev.com/0dee3ec4784b2fb73d3aefaab1e00e92767ac767
Cr-Commit-Position: refs/heads/master@{#399858}
==========
to
==========
Implement script-side of callback reactions for Custom Elements V1
This patch implements script-side of callback reactions. Abstract
classes were implemented in a separate CL[1].
Also contains following refactoring:
1. Callbacks are stored as v8::Function to make calling them easier.
2. m_observedAttribute is moved to the super class
(CustomElementDefinition) to allow iteratiion.
3. The order to Get("observedAttributes") was changed as per the spec
change[2].
The wpt test failure is a test issue, PR[3] is sent.
[1] https://codereview.chromium.org/2058823002
[2] https://github.com/whatwg/html/issues/1373
[3] https://github.com/w3c/web-platform-tests/pull/3175
BUG=594918
Committed: https://crrev.com/4f581ae17af347201ede92b01dc47068ee0cf2d5
Cr-Commit-Position: refs/heads/master@{#399859}
==========
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/4f581ae17af347201ede92b01dc47068ee0cf2d5 Cr-Commit-Position: refs/heads/master@{#399859}
4 years, 6 months ago
(2016-06-15 08:38:16 UTC)
#33
API stability nag (no action required): This breaks the api stability checker: https://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stability/builds/17711 Please leave ...
4 years, 6 months ago
(2016-06-15 12:54:03 UTC)
#39
Message was sent while issue was closed.
API stability nag (no action required):
This breaks the api stability checker:
https://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stabili...
Please leave enough time between v8-side changes and following chromium changes
(min. 2-3 days) so that v8 is always revertible cleanly to the last canary
version.
kojii
On 2016/06/15 at 12:54:03, machenbach wrote: > API stability nag (no action required): > > ...
4 years, 6 months ago
(2016-06-15 14:10:30 UTC)
#40
Message was sent while issue was closed.
On 2016/06/15 at 12:54:03, machenbach wrote:
> API stability nag (no action required):
>
> This breaks the api stability checker:
>
https://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stabili...
>
> Please leave enough time between v8-side changes and following chromium
changes (min. 2-3 days) so that v8 is always revertible cleanly to the last
canary version.
machenbach@, please see comment 35. Somehow this CL landed twice, and that broke
out build too. Take https://codereview.chromium.org/2066793003/ and your build
should be fixed too.
Issue 2060753002: Implement script-side of callback reactions for Custom Elements V1
(Closed)
Created 4 years, 6 months ago by kojii
Modified 4 years, 6 months ago
Reviewers: dominicc (has gone to gerrit), haraken, foolip, Jens Widell, Michael Achenbach
Base URL: https://chromium.googlesource.com/chromium/src.git@callback-ce
Comments: 8