event.isTrusted is always true for scroll events |
||
Issue descriptionVersion: 53.0.2785.116 (64-bit) OS: OSX 10.11.16 What steps will reproduce the problem? (1) try this JS BIN , you can manual scroll and scroll by clicking a button - there is timeout scrolls http://jsbin.com/fiwiqo What is the expected output? event.isTrusted should be false on timer events (programmatic scroll) What do you see instead? event.isTrusted is always true Please use labels and text to provide additional information.
,
Sep 21 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by dtapu...@chromium.org
, Sep 21 2016Components: Blink>DOM
Labels: -Pri-1 Needs-Feedback Pri-3
isTrusted just represents whether the event was dispatched from JavaScript or from the UserAgent. Not who initiated the real underlying action. FireFox matches the same as us. The ScrollEvent is generated by the UA and dispatched as a result of some type of scroll. This is in opposite to something like: document.dispatchEvent(new UIEvent("scroll")); which would be an untrusted event.