Skip to content

Adapt Worker/Message API to new events structure#15046

Merged
ddbeck merged 5 commits intomdn:mainfrom
queengooborg:api/DedicatedWorkerGlobalScope/events
Mar 22, 2022
Merged

Adapt Worker/Message API to new events structure#15046
ddbeck merged 5 commits intomdn:mainfrom
queengooborg:api/DedicatedWorkerGlobalScope/events

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
Contributor

@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!

}
}
},
"onmessage": {
Copy link
Contributor

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
Contributor

@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