diff --git a/dom/webidl/Event.webidl b/dom/webidl/Event.webidl index 4d9a87928435..24eb456fa57b 100644 --- a/dom/webidl/Event.webidl +++ b/dom/webidl/Event.webidl @@ -10,7 +10,7 @@ * liability, trademark and document use rules apply. */ -[Exposed=(Window,Worker), ProbablyShortLivingWrapper] +[Exposed=(Window,Worker,AudioWorklet), ProbablyShortLivingWrapper] interface Event { constructor(DOMString type, optional EventInit eventInitDict = {}); diff --git a/dom/webidl/MessageEvent.webidl b/dom/webidl/MessageEvent.webidl index 1dfe07744cdc..558a2cbc1667 100644 --- a/dom/webidl/MessageEvent.webidl +++ b/dom/webidl/MessageEvent.webidl @@ -7,7 +7,7 @@ * https://html.spec.whatwg.org/#messageevent */ -[Exposed=(Window,Worker)] +[Exposed=(Window,Worker,AudioWorklet)] interface MessageEvent : Event { constructor(DOMString type, optional MessageEventInit eventInitDict = {});