← Back to release summary

Remove ServiceWorkerMessageEvent in favor of using MessageEvent

Category
Service Worker
Type
New or changed feature
Status
Enabled by default (Chrome 57)
Intent stage
None

Summary

As HTML spec extended MessageEvent to allow ServiceWorker as a type of the source attribute, client.postMessage(message, transfer) and creation of custom message events are changed to use MessageEvent instead of ServiceWorkerMessageEvent. ServiceWorkerMessageEvent is removed.

Standards & signals

View on chromestatus.com