diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 15:55:27 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 23:41:54 +0800 |
commit | 5c8599d223fccba1afe68d1cfbfe11ec0231621f (patch) | |
tree | b7ef8f3bcf112bebde54bcbf3713fbb3ac8f0444 /dom/webidl | |
parent | 0206e87a2ef3ba0769de3589d4a99ba5959918f5 (diff) | |
download | uxp-5c8599d223fccba1afe68d1cfbfe11ec0231621f.tar.gz |
Issue #2197 - Part 2a: Implement StructuredSerializeOptions for MessagePort
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/MessagePort.webidl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dom/webidl/MessagePort.webidl b/dom/webidl/MessagePort.webidl index 6495b5616d..0b36c47d94 100644 --- a/dom/webidl/MessagePort.webidl +++ b/dom/webidl/MessagePort.webidl @@ -10,7 +10,9 @@ [Exposed=(Window,Worker,System)] interface MessagePort : EventTarget { [Throws] - void postMessage(any message, optional sequence<object> transferable = []); + void postMessage(any message, sequence<object> transferable); + [Throws] + void postMessage(any message, optional StructuredSerializeOptions options); void start(); void close(); @@ -19,3 +21,8 @@ interface MessagePort : EventTarget { attribute EventHandler onmessage; }; // MessagePort implements Transferable; + +// Used to declare which objects should be transferred. +dictionary StructuredSerializeOptions { + sequence<object> transfer = []; +};
\ No newline at end of file |