Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/401049)
3 years, 9 months ago
(2017-03-15 07:04:38 UTC)
#4
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/170724) ios-device-xcode-clang on ...
3 years, 9 months ago
(2017-03-15 08:13:32 UTC)
#9
Description was changed from ========== Fix svg <use> BUG=667324 ========== to ========== Support event handling ...
3 years, 9 months ago
(2017-03-15 08:39:54 UTC)
#10
Description was changed from
==========
Fix svg <use>
BUG=667324
==========
to
==========
Support event handling in SVG's use-element shadow trees
The spec is: https://svgwg.org/svg2-draft/struct.html#UseShadowTree (5.6.1. The
use-elemetn shadow tree)
This CL is basically a fix for a regression, which was intentionally introduced
in https://codereview.chromium.org/2186823002, where I removed the code to
prevent universal XSS.
The most part of this CL is a re-land of the code which was removed there.
The followings are necessary changes before re-supporting event handling.
- TODO
- TODO
Regarding, event#currentTarget(), the current spec is unclear. So, this CL
honored the original behavior.
BUG=667324
==========
hayato
Description was changed from ========== Support event handling in SVG's use-element shadow trees The spec ...
3 years, 9 months ago
(2017-03-15 08:40:04 UTC)
#11
Description was changed from
==========
Support event handling in SVG's use-element shadow trees
The spec is: https://svgwg.org/svg2-draft/struct.html#UseShadowTree (5.6.1. The
use-elemetn shadow tree)
This CL is basically a fix for a regression, which was intentionally introduced
in https://codereview.chromium.org/2186823002, where I removed the code to
prevent universal XSS.
The most part of this CL is a re-land of the code which was removed there.
The followings are necessary changes before re-supporting event handling.
- TODO
- TODO
Regarding, event#currentTarget(), the current spec is unclear. So, this CL
honored the original behavior.
BUG=667324
==========
to
==========
Support event handling in SVG's use-element shadow trees
The spec is: https://svgwg.org/svg2-draft/struct.html#UseShadowTree (5.6.1. The
use-element shadow tree)
This CL is basically a fix for a regression, which was intentionally introduced
in https://codereview.chromium.org/2186823002, where I removed the code to
prevent universal XSS.
The most part of this CL is a re-land of the code which was removed there.
The followings are necessary changes before re-supporting event handling.
- TODO
- TODO
Regarding, event#currentTarget(), the current spec is unclear. So, this CL
honored the original behavior.
BUG=667324
==========
hayato
rebased
3 years, 9 months ago
(2017-03-15 09:15:19 UTC)
#12
rebased
hayato
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-15 09:15:21 UTC)
#13
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/401128)
3 years, 9 months ago
(2017-03-15 11:01:54 UTC)
#17
Description was changed from ========== Support event handling in SVG's use-element shadow trees The spec ...
3 years, 9 months ago
(2017-03-15 11:19:55 UTC)
#18
Description was changed from
==========
Support event handling in SVG's use-element shadow trees
The spec is: https://svgwg.org/svg2-draft/struct.html#UseShadowTree (5.6.1. The
use-element shadow tree)
This CL is basically a fix for a regression, which was intentionally introduced
in https://codereview.chromium.org/2186823002, where I removed the code to
prevent universal XSS.
The most part of this CL is a re-land of the code which was removed there.
The followings are necessary changes before re-supporting event handling.
- TODO
- TODO
Regarding, event#currentTarget(), the current spec is unclear. So, this CL
honored the original behavior.
BUG=667324
==========
to
==========
Support event handling in SVG's use-element shadow trees
The spec is: https://svgwg.org/svg2-draft/struct.html#UseShadowTree (5.6.1. The
use-element shadow tree)
This CL is basically a fix for a regression, which was intentionally introduced
in https://codereview.chromium.org/2186823002, where I removed the code to
prevent universal XSS.
The most part of this CL is a re-land of the code which was removed there.
See also the following CLs as necessary changes before landing this CL:
- https://codereview.chromium.org/2537143004
- https://codereview.chromium.org/2752763002
Regarding, event#currentTarget(), the current spec is unclear. So, this CL
honored the original behavior.
BUG=667324
==========
hayato
split and rebased
3 years, 9 months ago
(2017-03-15 11:23:05 UTC)
#19
split and rebased
hayato
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-15 11:23:06 UTC)
#20
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/401166)
3 years, 9 months ago
(2017-03-15 12:49:21 UTC)
#25
This looks good to me, with a few comments and suggested test improvements. https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg File ...
3 years, 9 months ago
(2017-03-15 13:28:12 UTC)
#26
This looks good to me, with a few comments and suggested test improvements.
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg
(right):
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg:1:
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
Any particular reason why these tests (this and the following two) can't just
use HTML wrapping and testharness.js? (I don't see a need for using
text-based-repaint.js here.)
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml
(right):
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml:33:
var event = document.createEvent("MouseEvents");
Why convert this away from the constructor form?
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h (right):
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h:84: // that the
SVG code does not add the event handler in both
This comment reads a bit backwards to me ("implemented in JavaScript" - should
that be "added by JavaScript? still missing a negation in that case.)
Maybe "(Needs to )return true, so that event handlers from markup are not cloned
twice when building the shadow tree for SVGUseElements."
(Also, "the SVG code" is just generally vague, and referencing method name is
sensitive to renames - as the next comment seem to imply...)
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h:86: //
SVGUseElement::transferEventListenersToShadowTree
I guess this should say cloneNonMarkupEventListeners or so instead?
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/events/EventListenerMap.cpp (right):
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/events/EventListenerMap.cpp:194: // shadow tree
during cloning.
This comment doesn't make a lot of sense in this context. Would make more sense
before the calls to SVGUseElement::cloneNonMarkupEventListeners I think. The
method name should suffice as documentation here I think, possibly with a short
comment (which I suspect will be redundant with the name...)
(Also, transfered -> transferred)
hayato
Addressed
3 years, 9 months ago
(2017-03-16 05:58:07 UTC)
#27
Addressed
hayato
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-16 05:58:09 UTC)
#28
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/328004)
3 years, 9 months ago
(2017-03-16 06:34:50 UTC)
#32
3 years, 9 months ago
(2017-03-16 08:43:13 UTC)
#33
lgtm
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg
(right):
https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg:1:
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
On 2017/03/16 at 05:59:22, hayato wrote:
> Ah, these tests are just the result of re-landing tests which were removed (or
were updated to drop the support event handling) in
https://codereview.chromium.org/2186823002.
> I tried to recover the original tests as they were in this CL, intentionally,
without any updates, to isolate issues.
>
> I agree that there are some old-fashioned things in these tests, but it might
be better not to update these tests together with this CL.
> We might want to update these tests in another CL, as a separate concern.
SGTM.
hayato
The CQ bit was checked by hayato@chromium.org
3 years, 9 months ago
(2017-03-16 10:18:13 UTC)
#34
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/386984)
3 years, 9 months ago
(2017-03-16 10:24:41 UTC)
#37
tkent@, Could you stamp for bindings/core/v8/V8LazyEventListener.h?
3 years, 9 months ago
(2017-03-16 10:26:34 UTC)
#39
tkent@,
Could you stamp for bindings/core/v8/V8LazyEventListener.h?
tkent
On 2017/03/16 at 10:26:34, hayato wrote: > tkent@, > Could you stamp for bindings/core/v8/V8LazyEventListener.h? lgtm. ...
3 years, 9 months ago
(2017-03-16 23:22:35 UTC)
#40
On 2017/03/16 at 10:26:34, hayato wrote:
> tkent@,
> Could you stamp for bindings/core/v8/V8LazyEventListener.h?
lgtm.
use-event-handler-on-referenced-element.svg is failing on all platforms.
hayato
On 2017/03/16 at 23:22:35, tkent wrote: > On 2017/03/16 at 10:26:34, hayato wrote: > > ...
3 years, 9 months ago
(2017-03-17 04:00:12 UTC)
#41
On 2017/03/16 at 23:22:35, tkent wrote:
> On 2017/03/16 at 10:26:34, hayato wrote:
> > tkent@,
> > Could you stamp for bindings/core/v8/V8LazyEventListener.h?
>
> lgtm.
>
> use-event-handler-on-referenced-element.svg is failing on all platforms.
It looks use-event-handler-on-referenced-element.svg is a pixel test. Let me
land with this CL with rebasing.
hayato
needs rebaseline
3 years, 9 months ago
(2017-03-17 04:03:45 UTC)
#42
needs rebaseline
hayato
The CQ bit was checked by hayato@chromium.org to run a CQ dry run
3 years, 9 months ago
(2017-03-17 04:03:47 UTC)
#43
Issue 2742293006: Support event handling in SVG's use-element shadow trees
(Closed)
Created 3 years, 9 months ago by hayato
Modified 3 years, 9 months ago
Reviewers: fs, pdr., tkent
Base URL:
Comments: 11