summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Client.webidl2
-rw-r--r--dom/webidl/DedicatedWorkerGlobalScope.webidl2
-rw-r--r--dom/webidl/MessagePort.webidl2
-rw-r--r--dom/webidl/ServiceWorker.webidl2
-rw-r--r--dom/webidl/Window.webidl2
-rw-r--r--dom/webidl/Worker.webidl2
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;
};