Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM: Test that some event listeners are passive by default #34623

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Jun 28, 2022

Follows whatwg/dom#1087

@zcorpan
Copy link
Member Author

zcorpan commented Jun 28, 2022

Test results: https://wpt.fyi/results/dom/events/passive-by-default.html?sha=e09aa79d2c&label=pr_head

All tests pass except the mousewheel event tests in Firefox because Firefox doesn't support that event.

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. However I wonder if we should also test that passing explicit { passive: false } overrides this default?

dom/events/passive-by-default.html Outdated Show resolved Hide resolved
@zcorpan
Copy link
Member Author

zcorpan commented Jun 29, 2022

@domenic done, also tested {passive: undefined} and {passive: true}

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants