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

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:
tkent, pdr., fs
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, krit, fmalita+watch_chromium.org, fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Review-Url: https://codereview.chromium.org/2742293006 Cr-Commit-Position: refs/heads/master@{#457705} Committed: https://chromium.googlesource.com/chromium/src/+/b586056392985ae99a88b83e66a4685e356020d2

Patch Set 1 #

Patch Set 2 : user agent shadow root -> closed shadow root #

Patch Set 3 : rebased #

Patch Set 4 : split and rebased #

Total comments: 11

Patch Set 5 : Addressed #

Patch Set 6 : needs rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -57 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/use-instanceRoot-event-bubbling-expected.txt View 1 chunk +10 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js View 2 chunks +15 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/custom/use-event-attribute.html View 1 chunk +0 lines, -18 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg View 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element-addEventListener.svg View 1 chunk +44 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element-addEventListener-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element-hierarchy.svg View 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element-hierarchy-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/Event.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/Event.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventListener.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventListenerMap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventListenerMap.cpp View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventPath.cpp View 3 chunks +3 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 2 3 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 51 (34 generated)
hayato
user agent shadow root -> closed shadow root
3 years, 9 months ago (2017-03-15 08:11:03 UTC) #5
hayato
rebased
3 years, 9 months ago (2017-03-15 09:15:19 UTC) #12
hayato
https://codereview.chromium.org/2752763002 is separated CL from this CL.
3 years, 9 months ago (2017-03-15 10:53:25 UTC) #15
hayato
split and rebased
3 years, 9 months ago (2017-03-15 11:23:05 UTC) #19
hayato
PTAL This CL depends on https://codereview.chromium.org/2742293006.
3 years, 9 months ago (2017-03-15 11:26:33 UTC) #23
fs
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
hayato
Addressed
3 years, 9 months ago (2017-03-16 05:58:07 UTC) #27
hayato
fs@, thank you for the review. https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg 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/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg#newcode1 third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg:1: <svg version="1.1" baseProfile="basic" ...
3 years, 9 months ago (2017-03-16 05:59:23 UTC) #30
fs
lgtm https://codereview.chromium.org/2742293006/diff/60001/third_party/WebKit/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg 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/LayoutTests/svg/custom/use-event-handler-on-referenced-element.svg#newcode1 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 ...
3 years, 9 months ago (2017-03-16 08:43:13 UTC) #33
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/2742293006/80001
3 years, 9 months ago (2017-03-16 10:18:25 UTC) #35
commit-bot: I haz the power
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
hayato
tkent@, Could you stamp for bindings/core/v8/V8LazyEventListener.h?
3 years, 9 months ago (2017-03-16 10:26:34 UTC) #39
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
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
hayato
needs rebaseline
3 years, 9 months ago (2017-03-17 04:03:45 UTC) #42
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/2742293006/100001
3 years, 9 months ago (2017-03-17 04:04:57 UTC) #48
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 07:09:26 UTC) #51
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b586056392985ae99a88b83e66a4...

Powered by Google App Engine
This is Rietveld 408576698