diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 09:56:33 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 23:41:48 +0800 |
commit | 253c711a922193c41a151e12dd81179624921841 (patch) | |
tree | 19dcb62c4d84c3c775f24a0a1665a8c5b58f5239 /dom/webidl | |
parent | a9c9fc184a5bfcce2665405a215724a4440980f2 (diff) | |
download | uxp-253c711a922193c41a151e12dd81179624921841.tar.gz |
Issue #2197 - Part 1a: postMessages should have transferable as [] by default
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/Client.webidl | 2 | ||||
-rw-r--r-- | dom/webidl/DedicatedWorkerGlobalScope.webidl | 2 | ||||
-rw-r--r-- | dom/webidl/MessagePort.webidl | 2 | ||||
-rw-r--r-- | dom/webidl/ServiceWorker.webidl | 2 | ||||
-rw-r--r-- | dom/webidl/Window.webidl | 2 | ||||
-rw-r--r-- | dom/webidl/Worker.webidl | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/dom/webidl/Client.webidl b/dom/webidl/Client.webidl index 3e79c6a635..df73a79d79 100644 --- a/dom/webidl/Client.webidl +++ b/dom/webidl/Client.webidl @@ -15,7 +15,7 @@ interface Client { readonly attribute DOMString id; [Throws] - void postMessage(any message, optional sequence<Transferable> transfer); + void postMessage(any message, optional sequence<Transferable> transfer = []); }; [Exposed=ServiceWorker] diff --git a/dom/webidl/DedicatedWorkerGlobalScope.webidl b/dom/webidl/DedicatedWorkerGlobalScope.webidl index 26dca58dab..75a4032676 100644 --- a/dom/webidl/DedicatedWorkerGlobalScope.webidl +++ b/dom/webidl/DedicatedWorkerGlobalScope.webidl @@ -16,7 +16,7 @@ Exposed=DedicatedWorker] interface DedicatedWorkerGlobalScope : WorkerGlobalScope { [Throws] - void postMessage(any message, optional sequence<any> transfer); + void postMessage(any message, optional sequence<any> transfer = []); attribute EventHandler onmessage; }; diff --git a/dom/webidl/MessagePort.webidl b/dom/webidl/MessagePort.webidl index 59c61a7149..aef7e4bd11 100644 --- a/dom/webidl/MessagePort.webidl +++ b/dom/webidl/MessagePort.webidl @@ -10,7 +10,7 @@ [Exposed=(Window,Worker,System)] interface MessagePort : EventTarget { [Throws] - void postMessage(any message, optional sequence<Transferable> transferable); + void postMessage(any message, optional sequence<Transferable> transferable = []); void start(); void close(); diff --git a/dom/webidl/ServiceWorker.webidl b/dom/webidl/ServiceWorker.webidl index 8c3749e940..17fc903dcb 100644 --- a/dom/webidl/ServiceWorker.webidl +++ b/dom/webidl/ServiceWorker.webidl @@ -21,7 +21,7 @@ interface ServiceWorker : EventTarget { // FIXME(catalinb): Should inherit this from Worker. [Throws] - void postMessage(any message, optional sequence<Transferable> transferable); + void postMessage(any message, optional sequence<Transferable> transferable = []); }; ServiceWorker implements AbstractWorker; diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl index 1b98042473..199a846bd1 100644 --- a/dom/webidl/Window.webidl +++ b/dom/webidl/Window.webidl @@ -80,7 +80,7 @@ typedef any Transferable; [Throws, UnsafeInPrerendering] void print(); [Throws, CrossOriginCallable, NeedsSubjectPrincipal] - void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer); + void postMessage(any message, DOMString targetOrigin, optional sequence<Transferable> transfer = []); // also has obsolete members }; diff --git a/dom/webidl/Worker.webidl b/dom/webidl/Worker.webidl index 158a502d60..4bc79e9e15 100644 --- a/dom/webidl/Worker.webidl +++ b/dom/webidl/Worker.webidl @@ -19,7 +19,7 @@ interface Worker : EventTarget { void terminate(); [Throws] - void postMessage(any message, optional sequence<any> transfer); + void postMessage(any message, optional sequence<any> transfer = []); attribute EventHandler onmessage; }; |