How we built it

ExtendableMessageEvent on ServiceWorkerGlobalScope

ServiceWorker.postMessage() now results in an ExtendableMessageEvent fired on ServiceWorkerGlobalScope as a 'message' event. ExtendableMessageEvent.waitUntil() extends its lifetime until a passed Promise is settled. Before this change, postMessage() resulted in a MessageEvent fired on the global scope.

Demo

Documentation

Specification

Working draft or equivalent

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 51
  • Chrome for Android release 51
  • Opera release 38
  • Opera for Android release 38

Consensus & Standardization

  • Shipped
  • No public signals
  • No public signals
  • No signals

Owner

Last updated on 2016-04-13