|
Add Event.isTrusted support
Add the Event.isTrusted support behind an TrustedEvents experimental
feature flag. The trusted flag is set at the point of event dispatch
just before any event processing on the event takes place.
There are 5 spots where the trusted events are set
1) EventTarget::eventDispatch (from C++)
2) EventTarget::eventDispatchForBindings (from JS)
3) LocalDOMWindow::dispatchEvent (from C++) with special semantics about target
4) SimulatedMouseEvent constructor (these events are generated
by the EventDispatcher itself)
5) Node::dispatchScopedEvent
Intent to Ship:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/cEJvjWg9bqg
BUG= 334015
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199071
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+83 lines, -46 lines) |
Patch |
|
A |
LayoutTests/fast/events/event-trusted.html
|
View
|
1
2
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/event-trusted-expected.txt
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/xmlhttprequest/xmlhttprequest-get-expected.txt
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/editing/focus/focus-management/focus-events-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/semantics/forms/textfieldselection/select-event-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/semantics/forms/the-button-element/button-events-expected.txt
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/checkbox-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/semantics/forms/the-input-element/radio-expected.txt
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/semantics/interactive-elements/the-details-element/toggleEvent-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
|
M |
LayoutTests/imported/web-platform-tests/html/syntax/parsing/the-end-expected.txt
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/bindings/scripts/v8_attributes.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Node.cpp
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/events/Event.h
|
View
|
1
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/events/Event.cpp
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/events/Event.idl
|
View
|
1
2
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/events/EventTarget.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/events/MouseEvent.h
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/events/MouseEvent.cpp
|
View
|
1
|
3 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/LocalDOMWindow.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/platform/RuntimeEnabledFeatures.in
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 15 (4 generated)
|