and make wheel/mousewheel event listeners registered on the window/document/body to be passive, as we do for touch listeners.
Created attachment 413985 [details]
Comment on attachment 413985 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=413985&action=review
r=me with nits
> + if (is<DOMWindow>(eventTarget))
I believe can can simply do:
since we know here to EventTarget is a Window or a Node, and thus its script execution context has to be a Document.
> + event.preventDefault();
In these tests, I would recommend checking event.defaultPrevented after calling preventDefault(). This is the easiest way to check if we are passive.
Created attachment 413994 [details]
Created attachment 414001 [details]