New issue
Advanced search Search tips

Issue 649059 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

event.isTrusted is always true for scroll events

Project Member Reported by skrish@google.com, Sep 21 2016

Issue description

Version: 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.

 
Cc: dtapu...@chromium.org
Components: 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.
Status: WontFix (was: Untriaged)

Sign in to add a comment