|
Event.path should include Window
It was pointed out at W3C bug 21066[1] that Event.path API
should return an array of EventTarget, not NodeList, and
also it should include Window object except for the 'load'
event as described in the HTML spec.
LayoutTests/fast/dom/shadow/event-path.html was changed to
a script test to ensure not only types but also instances
are correct.
Exiting test expectations are updated to include the Window
object, and added one test to test that the 'load' event
does not include the Window object.
One imported/web-platform-tests fails due to this spec
change and marked as Failure, until the PR[2] is merged
and imported.
[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21066
[2] https://github.com/w3c/web-platform-tests/pull/1524
BUG= 442632
TEST=fast/dom/shadow/event-path-load.html, fast/dom/shadow/event-path-window-load.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188594
Total comments: 7
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+187 lines, -143 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path.html
|
View
|
1
2
|
2 chunks |
+26 lines, -18 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-empty-shadow-element-expected.txt
|
View
|
|
1 chunk |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-for-user-agent-shadow-tree-expected.txt
|
View
|
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-in-shadow-tree-expected.txt
|
View
|
|
1 chunk |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/dom/shadow/event-path-load.html
|
View
|
1
2
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-multiple-shadow-roots-2-expected.txt
|
View
|
|
1 chunk |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-multiple-shadow-roots-expected.txt
|
View
|
|
1 chunk |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-shadow-insertion-point-in-oldest-shadow-root-expected.txt
|
View
|
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-svg-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/fast/dom/shadow/event-path-window-load.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/shadow/event-path-with-dom-mutation-expected.txt
|
View
|
|
1 chunk |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/http/tests/dom/crash-on-querying-event-path-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/events/Event.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/events/Event.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+18 lines, -10 lines |
0 comments
|
Download
|
 |
M |
Source/core/events/Event.idl
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/events/TreeScopeEventContext.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/events/TreeScopeEventContext.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+10 lines, -8 lines |
1 comment
|
Download
|
Total messages: 16 (3 generated)
|