WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 153538
Add Event.deepPath() and Event.scoped
https://bugs.webkit.org/show_bug.cgi?id=153538
Summary
Add Event.deepPath() and Event.scoped
Ryosuke Niwa
Reported
2016-01-26 23:47:36 PST
Implement extensions to Event interface for shadow DOM:
http://w3c.github.io/webcomponents/spec/shadow/#widl-Event-deepPath-sequence-EventTarget
Attachments
Adds the support
(61.96 KB, patch)
2016-03-11 00:51 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-yosemite
(724.55 KB, application/zip)
2016-03-11 01:42 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-yosemite-wk2
(760.60 KB, application/zip)
2016-03-11 01:46 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews126 for ios-simulator-wk2
(579.81 KB, application/zip)
2016-03-11 01:50 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews116 for mac-yosemite
(793.00 KB, application/zip)
2016-03-11 02:07 PST
,
Build Bot
no flags
Details
Patch for landing
(64.54 KB, patch)
2016-03-11 17:16 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews124 for ios-simulator-wk2
(716.49 KB, application/zip)
2016-03-11 18:08 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews117 for mac-yosemite
(825.71 KB, application/zip)
2016-03-11 18:27 PST
,
Build Bot
no flags
Details
Patch for landing 2
(68.50 KB, patch)
2016-03-11 18:32 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-01-26 23:47:59 PST
<
rdar://problem/24363836
>
Ryosuke Niwa
Comment 2
2016-03-09 19:10:23 PST
***
Bug 155283
has been marked as a duplicate of this bug. ***
Ryosuke Niwa
Comment 3
2016-03-11 00:51:47 PST
Created
attachment 273698
[details]
Adds the support
WebKit Commit Bot
Comment 4
2016-03-11 00:53:52 PST
Attachment 273698
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp:218: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 29 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 5
2016-03-11 01:42:54 PST
Comment on
attachment 273698
[details]
Adds the support
Attachment 273698
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/959444
New failing tests: fast/shadow-dom/trusted-event-scoped-flags.html fast/shadow-dom/negative-tabindex-on-shadow-host.html
Build Bot
Comment 6
2016-03-11 01:42:58 PST
Created
attachment 273709
[details]
Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 7
2016-03-11 01:46:53 PST
Comment on
attachment 273698
[details]
Adds the support
Attachment 273698
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/959449
New failing tests: fast/shadow-dom/negative-tabindex-on-shadow-host.html
Build Bot
Comment 8
2016-03-11 01:46:56 PST
Created
attachment 273710
[details]
Archive of layout-test-results from ews105 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 9
2016-03-11 01:50:30 PST
Comment on
attachment 273698
[details]
Adds the support
Attachment 273698
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/959447
New failing tests: fast/shadow-dom/trusted-event-scoped-flags.html
Build Bot
Comment 10
2016-03-11 01:50:33 PST
Created
attachment 273711
[details]
Archive of layout-test-results from ews126 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews126 Port: ios-simulator-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 11
2016-03-11 02:07:14 PST
Comment on
attachment 273698
[details]
Adds the support
Attachment 273698
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/959452
New failing tests: fast/shadow-dom/trusted-event-scoped-flags.html fast/shadow-dom/negative-tabindex-on-shadow-host.html
Build Bot
Comment 12
2016-03-11 02:07:17 PST
Created
attachment 273712
[details]
Archive of layout-test-results from ews116 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-yosemite Platform: Mac OS X 10.10.5
Darin Adler
Comment 13
2016-03-11 13:03:43 PST
Comment on
attachment 273698
[details]
Adds the support View in context:
https://bugs.webkit.org/attachment.cgi?id=273698&action=review
r=me assuming you address whatever is causing the tests to fail
> Source/WebCore/dom/EventPath.cpp:249 > + // Use Vector instead of HashSet since we expect the number of ancestor tree scopes to be small.
Expecting the number to be small, and not caring at all about the performance of pathological cases are two different things. Is this really the right tradeoff all the time?
> Source/WebCore/dom/EventPath.h:51 > + void computePathDisclosedToTarget(const EventTarget&, Vector<EventTarget*>&) const;
Why not have this return a Vector instead of using an out argument?
Ryosuke Niwa
Comment 14
2016-03-11 16:45:36 PST
(In reply to
comment #13
)
> Comment on
attachment 273698
[details]
> Adds the support > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=273698&action=review
> > r=me assuming you address whatever is causing the tests to fail
Fixed the test. I was missing m_relatedTarget check in FocusEvent.
> > Source/WebCore/dom/EventPath.cpp:249 > > + // Use Vector instead of HashSet since we expect the number of ancestor tree scopes to be small. > > Expecting the number to be small, and not caring at all about the > performance of pathological cases are two different things. Is this really > the right tradeoff all the time?
I think so. Nobody uses shadow DOM API today but this vector grows as much as there are number of ancestor shadow trees, and I don't think it can ever grow behind a small number (e.g. 8-10). We can revisit this design if it becomes a problem in practice. It's hard to make decisions given the lack of contents that use these APIs.
> > Source/WebCore/dom/EventPath.h:51 > > + void computePathDisclosedToTarget(const EventTarget&, Vector<EventTarget*>&) const; > > Why not have this return a Vector instead of using an out argument?
Fixed.
Ryosuke Niwa
Comment 15
2016-03-11 17:16:30 PST
Created
attachment 273788
[details]
Patch for landing
Ryosuke Niwa
Comment 16
2016-03-11 17:20:25 PST
Comment on
attachment 273788
[details]
Patch for landing Wait for EWS
WebKit Commit Bot
Comment 17
2016-03-11 17:21:18 PST
Attachment 273788
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp:218: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 31 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 18
2016-03-11 18:08:10 PST
Comment on
attachment 273788
[details]
Patch for landing
Attachment 273788
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/963179
New failing tests: fast/shadow-dom/trusted-event-scoped-flags.html
Build Bot
Comment 19
2016-03-11 18:08:14 PST
Created
attachment 273791
[details]
Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 20
2016-03-11 18:27:02 PST
Comment on
attachment 273788
[details]
Patch for landing
Attachment 273788
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/963231
New failing tests: fast/shadow-dom/trusted-event-scoped-flags.html
Build Bot
Comment 21
2016-03-11 18:27:06 PST
Created
attachment 273792
[details]
Archive of layout-test-results from ews117 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-yosemite Platform: Mac OS X 10.10.5
Ryosuke Niwa
Comment 22
2016-03-11 18:32:15 PST
Created
attachment 273793
[details]
Patch for landing 2
WebKit Commit Bot
Comment 23
2016-03-11 18:36:01 PST
Attachment 273793
[details]
did not pass style-queue: ERROR: Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp:218: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 24
2016-03-11 18:37:37 PST
Comment on
attachment 273793
[details]
Patch for landing 2 View in context:
https://bugs.webkit.org/attachment.cgi?id=273793&action=review
> LayoutTests/platform/ios-simulator/fast/shadow-dom/trusted-event-scoped-flags-expected.txt:19 > +FAIL input.type = "text"; log(input, "mousemove"); eventSender.mouseMoveTo(x, y); eventType should be mousemove (of type string). Was undefined (of type undefined).
iOS doesn't support eventSender so these tests would fail there.
Ryosuke Niwa
Comment 25
2016-03-11 19:10:50 PST
Committed
r198056
: <
http://trac.webkit.org/changeset/198056
>
Lucas Forschler
Comment 26
2019-02-06 09:18:48 PST
Mass move bugs into the DOM component.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug