Skip to content

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

Merged
zcorpan merged 2 commits into
masterfrom
bocoup/event-listeners-passive-by-default
Jun 30, 2022
Merged

zcorpan merged 2 commits into
masterfrom
bocoup/event-listeners-passive-by-default

Conversation

@zcorpan

@zcorpan zcorpan commented Jun 28, 2022

Copy link
Copy Markdown
Member

Follows whatwg/dom#1087

@zcorpan

zcorpan commented Jun 28, 2022

Copy link
Copy Markdown
Member Author

@domenic domenic left a comment

Copy link
Copy Markdown
Member

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?

Comment thread dom/events/passive-by-default.html Resolved
@zcorpan

zcorpan commented Jun 29, 2022

Copy link
Copy Markdown
Member Author

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

@domenic domenic left a comment

Copy link
Copy Markdown
Member

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