summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-04-07 12:04:38 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-04-07 23:41:54 +0800
commit0206e87a2ef3ba0769de3589d4a99ba5959918f5 (patch)
treea13c21c7ca686427b01b66bc8f856056388ccd9a /dom/webidl
parent253c711a922193c41a151e12dd81179624921841 (diff)
downloaduxp-0206e87a2ef3ba0769de3589d4a99ba5959918f5.tar.gz
Issue #2197 - Part 1b: Transferables should be arrays of objects
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1336020
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.webidl3
-rw-r--r--dom/webidl/Window.webidl3
-rw-r--r--dom/webidl/Worker.webidl2
6 files changed, 6 insertions, 8 deletions
diff --git a/dom/webidl/Client.webidl b/dom/webidl/Client.webidl
index df73a79d79..7abb65ab12 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<object> transfer = []);
};
[Exposed=ServiceWorker]
diff --git a/dom/webidl/DedicatedWorkerGlobalScope.webidl b/dom/webidl/DedicatedWorkerGlobalScope.webidl
index 75a4032676..ad3125fa31 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<object> transfer = []);
attribute EventHandler onmessage;
};
diff --git a/dom/webidl/MessagePort.webidl b/dom/webidl/MessagePort.webidl
index aef7e4bd11..6495b5616d 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<object> transferable = []);
void start();
void close();
diff --git a/dom/webidl/ServiceWorker.webidl b/dom/webidl/ServiceWorker.webidl
index 17fc903dcb..6dab46a16b 100644
--- a/dom/webidl/ServiceWorker.webidl
+++ b/dom/webidl/ServiceWorker.webidl
@@ -19,9 +19,8 @@ interface ServiceWorker : EventTarget {
attribute EventHandler onstatechange;
- // FIXME(catalinb): Should inherit this from Worker.
[Throws]
- void postMessage(any message, optional sequence<Transferable> transferable = []);
+ void postMessage(any message, optional sequence<object> transferable = []);
};
ServiceWorker implements AbstractWorker;
diff --git a/dom/webidl/Window.webidl b/dom/webidl/Window.webidl
index 199a846bd1..73d5843a16 100644
--- a/dom/webidl/Window.webidl
+++ b/dom/webidl/Window.webidl
@@ -22,7 +22,6 @@ interface IID;
interface nsIBrowserDOMWindow;
interface nsIMessageBroadcaster;
interface nsIDOMCrypto;
-typedef any Transferable;
// http://www.whatwg.org/specs/web-apps/current-work/
[PrimaryGlobal, LegacyUnenumerableNamedProperties, NeedResolve]
@@ -80,7 +79,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<object> transfer = []);
// also has obsolete members
};
diff --git a/dom/webidl/Worker.webidl b/dom/webidl/Worker.webidl
index 4bc79e9e15..44f406d8ce 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<object> transfer = []);
attribute EventHandler onmessage;
};