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

Comlink API: Pass the context argument to windowEndpoint, not wrap #1087

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Mar 6, 2024

Follows up on #1085 that correctly identified the issue with postMessage event handlers, but passed the context argument to the wrong function call. wrap() uesd in that PR is not responsible for binding the message event handler. windowEndpoint() is. This PR fixes the mistake.

Follows up on #1085 that correctly identified the issue with
`postMessage` event handlers, but passed the context argument to the
wrong function call. `wrap()` uesd in that PR is not responsible for binding the message
event handler. `windowEndpoint()` is. This PR fixes the mistake.
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Aspect] Browser JS API labels Mar 6, 2024
@adamziel adamziel merged commit 2884b17 into trunk Mar 6, 2024
5 checks passed
@adamziel adamziel deleted the comlink-api-pass-context-to-window-endpoint branch March 6, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Browser [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant