diff --git a/source b/source index a6b9c57139a..d3f72ef7305 100644 --- a/source +++ b/source @@ -3885,6 +3885,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • match service worker registration
  • service worker
  • service worker client
  • +
  • ServiceWorker interface
  • ServiceWorkerContainer interface
  • @@ -92737,19 +92738,21 @@ interface MessageEvent : Event { readonly attribute any data; readonly attribute USVString origin; readonly attribute DOMString lastEventId; - readonly attribute (WindowProxy or MessagePort)? source; + readonly attribute MessageEventSource? source; readonly attribute FrozenArray<MessagePort> ports; - void initMessageEvent(DOMString type, boolean bubbles, boolean cancelable, any data, USVString origin, DOMString lastEventId, (WindowProxy or MessagePort)? source, sequence<MessagePort> ports); + void initMessageEvent(DOMString type, boolean bubbles, boolean cancelable, any data, USVString origin, DOMString lastEventId, MessageEventSource? source, sequence<MessagePort> ports); }; dictionary MessageEventInit : EventInit { any data = null; USVString origin = ""; DOMString lastEventId = ""; - (WindowProxy or MessagePort)? source = null; + MessageEventSource? source = null; sequence<MessagePort> ports = []; -}; +}; + +typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource;