You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WPT action APIs are synthetic and do not dispatch trusted events. This means that events triggered by click or clickAndWait will be ignored by the EventTiming APIs
Steps to reproduce
Create an event handler that listens to click event and logs "isTrusted" property of the event with a command like:
execAndWait document.body.addEventListener("click", function(e){console.warn('isTrusted is ', e.isTrusted)}, {passive: true, capture: true})
Then run a clickAndWait command like:
clickAndWait id=<>
This will log onto the console that "isTrusted is false"
Expected result
We want that click event's isTrusted property to be true.
The text was updated successfully, but these errors were encountered:
@MaryamHuntsperger It'd be interesting to generalize this item to include also being able to dispatch other trusted events (like touch and keyboard events)
Description
WPT action APIs are synthetic and do not dispatch trusted events. This means that events triggered by click or clickAndWait will be ignored by the EventTiming APIs
Steps to reproduce
Create an event handler that listens to click event and logs "isTrusted" property of the event with a command like:
execAndWait document.body.addEventListener("click", function(e){console.warn('isTrusted is ', e.isTrusted)}, {passive: true, capture: true})
Then run a clickAndWait command like:
clickAndWait id=<>
This will log onto the console that "isTrusted is false"
Expected result
We want that click event's isTrusted property to be true.
The text was updated successfully, but these errors were encountered: