-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Adapt Worker/Message API to new events structure #15046
Conversation
This PR adapts the DedicatedWorkerGlobalScope API to conform to the new events structure. Part of work for mdn#14578.
There was a problem hiding this 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": { |
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This PR adapts the DedicatedWorkerGlobalScope, ServiceWorkerContainer, Window[EventHandlers], and Worker APIs to conform to the new events structure. Part of work for #14578.