Skip to content

[Editorial] Use MessageEvent for ServiceWorkerContainer message and messageerror#1825

Merged
monica-ch merged 1 commit into
w3c:mainfrom
monica-ch:user/monica/MessageEvent
Jun 8, 2026
Merged

[Editorial] Use MessageEvent for ServiceWorkerContainer message and messageerror#1825
monica-ch merged 1 commit into
w3c:mainfrom
monica-ch:user/monica/MessageEvent

Conversation

@monica-ch

@monica-ch monica-ch commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

The events table for ServiceWorkerContainer listed the Event interface
for both the message and messageerror events, but the Client.postMessage
algorithm in §4.5.3 dispatches both events using MessageEvent here in https://w3c.github.io/ServiceWorker/#client-postmessage

This PR updates the table to match the algorithm:

  • message: EventMessageEvent
  • messageerror: EventMessageEvent

This PR fixes #1301


Preview | Diff

@monica-ch

Copy link
Copy Markdown
Collaborator Author

@yoshisatoyanagisawa CYPTAL?

@yoshisatoyanagisawa yoshisatoyanagisawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm.

@monica-ch monica-ch merged commit 6de474f into w3c:main Jun 8, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Jun 8, 2026
SHA: 6de474f
Reason: push, by monica-ch

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to asleekgeek/ServiceWorker that referenced this pull request Jun 8, 2026
SHA: 6de474f
Reason: push, by pull[bot]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to yoshisatoyanagisawa/ServiceWorker that referenced this pull request Jun 16, 2026
SHA: 6de474f
Reason: push, by yoshisatoyanagisawa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Does ServiceWorkerContainer.onmessage also get ExtendableMessageEvent object?

2 participants