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

api.EventTarget.addEventListener.options - add signal option #9562

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Mar 23, 2021

Fixes #9555
@ddbeck Comments inline.

Further, I just called this subfeature signal. There is a bit of a mess of naming, and I guess that will impact ordering. I was wondering if perhaps we should rename according to a patter. So perhaps option_signal, option_passive, option_once. Then the passive option exceptiosn could be option_passive_default_etc. I will leave unchanged unless you decide renaming is sensible.

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Mar 23, 2021
"description": "<code>signal</code> option",
"support": {
"chrome": {
"version_added": "89"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ddbeck FYI you indicated Chrome 90, my testing shows 89 works, but the fact Opera works on Opera 74 indicates maybe it went in on Chrome 88?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch. You must have experimental web features turned on. It was added behind a preference in 88 and enabled by default in 90.

You can enter them as two support statements (one with a flag added in 88 and removed in 90, then one without a flag added in 90), or you can ignore the flag and only report 90 (since, by the time this lands in BCD, it will be interesting to web developers for a couple of weeks at best).

"ie": {
"version_added": false
},
"nodejs": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, the spec predates the last release we have, so I have just put as false.

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

Thank you, @hamishwillee. Suggestion for handling the 88 vs. 90 question in a line comment.

Further, I just called this subfeature signal. There is a bit of a mess of naming, and I guess that will impact ordering. I was wondering if perhaps we should rename according to a patter. So perhaps option_signal, option_passive, option_once. Then the passive option exceptiosn could be option_passive_default_etc. I will leave unchanged unless you decide renaming is sensible.

Let's leave this for now. The structure here is a bit weird. It's probably the case that we ought to have passive_true_touch and passive_true_wheel as subfeatures of passive, or rename all of them, as you suggest. But really, we don't have a guideline for how these things are supposed to be and I'm not inclined to rearrange things without a guideline. I'll open a separate issue for that.

"description": "<code>signal</code> option",
"support": {
"chrome": {
"version_added": "89"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch. You must have experimental web features turned on. It was added behind a preference in 88 and enabled by default in 90.

You can enter them as two support statements (one with a flag added in 88 and removed in 90, then one without a flag added in 90), or you can ignore the flag and only report 90 (since, by the time this lands in BCD, it will be interesting to web developers for a couple of weeks at best).

Base automatically changed from master to main March 24, 2021 12:54
@hamishwillee
Copy link
Contributor Author

Thanks @ddbeck . I ended up ignoring the preference versions and just updating to v90 (and equivalent, if there was a matching release). Should be good to go.

Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

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

Thank you! 🎉

@ddbeck ddbeck merged commit 07c229c into mdn:main Mar 26, 2021
@hamishwillee hamishwillee deleted the eventlist_abortsignal branch March 27, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api.EventTarget.addEventListener.options - Missing feature for signal option
2 participants