From 1db965057e641cf567f5aebc0b597a1b3b5b72bc Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Mon, 2 Aug 2021 05:50:19 -0400 Subject: [PATCH] =?UTF-8?q?Update=20PostMessageOptions=20=E2=86=92=20Struc?= =?UTF-8?q?turedSerializeOptions=20(#1602)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follows https://github.com/whatwg/html/pull/3414. --- docs/index.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index 49e65c83..9e1f5ee4 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -381,7 +381,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231 readonly attribute USVString scriptURL; readonly attribute ServiceWorkerState state; undefined postMessage(any message, sequence<object> transfer); - undefined postMessage(any message, optional PostMessageOptions options = {}); + undefined postMessage(any message, optional StructuredSerializeOptions options = {}); // event attribute EventHandler onstatechange; @@ -459,7 +459,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231 1. Let |serviceWorker| be the [=/service worker=] represented by [=this=]. 1. Let |incumbentSettings| be the [=incumbent settings object=]. 1. Let |incumbentGlobal| be |incumbentSettings|'s [=environment settings object/global object=]. - 1. Let |serializeWithTransferResult| be StructuredSerializeWithTransfer(|message|, |options|.transfer). Rethrow any exceptions. + 1. Let |serializeWithTransferResult| be StructuredSerializeWithTransfer(|message|, |options|["{{StructuredSerializeOptions/transfer}}"]). Rethrow any exceptions. 1. If the result of running the [=Should Skip Event=] algorithm with "message" and |serviceWorker| is true, then return. 1. Run these substeps [=in parallel=]: 1. If the result of running the [=Run Service Worker=] algorithm with |serviceWorker| is *failure*, then return. @@ -1133,7 +1133,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231 readonly attribute DOMString id; readonly attribute ClientType type; undefined postMessage(any message, sequence<object> transfer); - undefined postMessage(any message, optional PostMessageOptions options = {}); + undefined postMessage(any message, optional StructuredSerializeOptions options = {}); }; [Exposed=ServiceWorker] @@ -1213,7 +1213,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231 1. Let |contextObject| be [=this=]. 1. Let |sourceSettings| be the |contextObject|'s [=relevant settings object=]. - 1. Let |serializeWithTransferResult| be StructuredSerializeWithTransfer(|message|, |options|.transfer). Rethrow any exceptions. + 1. Let |serializeWithTransferResult| be StructuredSerializeWithTransfer(|message|, |options|["{{StructuredSerializeOptions/transfer}}"]). Rethrow any exceptions. 1. Run the following steps [=in parallel=]: 1. Let |targetClient| be null. 1. For each [=/service worker client=] |client|: