diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 16:39:41 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 23:41:55 +0800 |
commit | b3a6a8f27410fe1a66c0ee90213870b888a6f874 (patch) | |
tree | 12e537c9b4d5343c7728d02f2ccff117a07213bf /dom/webidl | |
parent | 83501c86d2bc9e7b9e12da143204b38f426f20a0 (diff) | |
download | uxp-b3a6a8f27410fe1a66c0ee90213870b888a6f874.tar.gz |
Issue #2197 - Part 2c: Implement StructuredSerializeOptions for ServiceWorker
Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/Client.webidl | 4 | ||||
-rw-r--r-- | dom/webidl/ServiceWorker.webidl | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dom/webidl/Client.webidl b/dom/webidl/Client.webidl index 7abb65ab12..c961c2b31f 100644 --- a/dom/webidl/Client.webidl +++ b/dom/webidl/Client.webidl @@ -15,7 +15,9 @@ interface Client { readonly attribute DOMString id; [Throws] - void postMessage(any message, optional sequence<object> transfer = []); + void postMessage(any message, sequence<object> transferable); + [Throws] + void postMessage(any message, optional StructuredSerializeOptions options); }; [Exposed=ServiceWorker] diff --git a/dom/webidl/ServiceWorker.webidl b/dom/webidl/ServiceWorker.webidl index 6dab46a16b..ff80fafc21 100644 --- a/dom/webidl/ServiceWorker.webidl +++ b/dom/webidl/ServiceWorker.webidl @@ -20,7 +20,9 @@ interface ServiceWorker : EventTarget { attribute EventHandler onstatechange; [Throws] - void postMessage(any message, optional sequence<object> transferable = []); + void postMessage(any message, sequence<object> transferable); + [Throws] + void postMessage(any message, optional StructuredSerializeOptions options); }; ServiceWorker implements AbstractWorker; |