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

Adapt Worker/Message API to new events structure #15046

Merged
merged 5 commits into from
Mar 22, 2022

Conversation

queengooborg
Copy link
Contributor

@queengooborg queengooborg commented Feb 19, 2022

This PR adapts the DedicatedWorkerGlobalScope, ServiceWorkerContainer, Window[EventHandlers], and Worker APIs to conform to the new events structure. Part of work for #14578.

This PR adapts the DedicatedWorkerGlobalScope API to conform to the new events structure.  Part of work for mdn#14578.
@queengooborg queengooborg added the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Feb 19, 2022
@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Feb 19, 2022
@queengooborg queengooborg changed the title Adapt DedicatedWorkerGlobalScope API to new events structure Adapt Worker/Message API to new events structure Feb 20, 2022
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.

A few questions here. Thank you!

@@ -293,106 +293,6 @@
}
}
},
"onmessage": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Another case where I'm not sure where this data went. What feature does this map to? Or if it doesn't exist, why isn't it added, based on this?

(My hunch here is that this PR is both demixing and consolidating events, but that's rather difficult to understand and verify from the diff alone.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the WindowEventHandlers mixin, they have been merged into Window!

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 ffa5f37 into mdn:main Mar 22, 2022
@queengooborg queengooborg deleted the api/DedicatedWorkerGlobalScope/events branch March 22, 2022 18:23
@queengooborg queengooborg removed the needs content update This PR needs a corresponding update to mdn/content to update the documentation label Jul 9, 2022
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.

3 participants