From 7c0a94c11288807ec1ac00029fefd16b5ab57813 Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Thu, 18 May 2017 14:50:51 +0900 Subject: [PATCH] Use ASCII serialization for origins This patch makes it to use ASCII serialization for (Extendable)MessageEvent.origin instead of Unicode serialization which has been removed from HTML. HTML issue: https://github.com/whatwg/html/issues/2568. HTML change: https://github.com/whatwg/html/pull/2689/commits/c3b2511ee0158fa4b5bd4e4689c6be54132f3d90. Fixes #1142. --- docs/index.bs | 4 ++-- docs/v1/index.bs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.bs b/docs/index.bs index 725e5195..91d09c11 100644 --- a/docs/index.bs +++ b/docs/index.bs @@ -414,7 +414,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
Otherwise
a new {{Client}} object that represents |incumbentGlobal|'s associated worker
- 1. Let |origin| be the [=Unicode serialization of an origin|Unicode serialization=] of |incumbentSettings|'s [=environment settings object/origin=]. + 1. Let |origin| be the [=serialization of an origin|serialization=] of |incumbentSettings|'s [=environment settings object/origin=]. 1. Let |destination| be the {{ServiceWorkerGlobalScope}} object associated with |serviceWorker|. 1. Let |deserializeRecord| be StructuredDeserializeWithTransfer(|serializeWithTransferResult|, |destination|'s [=global object/Realm=]). @@ -1106,7 +1106,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe 1. If |targetClient| is null, return. 1. Let |destination| be the {{ServiceWorkerContainer}} object whose associated [=ServiceWorkerContainer/service worker client=] is |targetClient|. 1. Add a [=task=] that runs the following steps to |destination|'s [=ServiceWorkerContainer/client message queue=]: - 1. Let |origin| be the [=Unicode serialization of an origin|Unicode serialization=] of |sourceSettings|'s [=environment settings object/origin=]. + 1. Let |origin| be the [=serialization of an origin|serialization=] of |sourceSettings|'s [=environment settings object/origin=]. 1. Let |source| be the result of [=getting the service worker object=] that represents |contextObject|'s [=relevant global object=]'s [=ServiceWorkerGlobalScope/service worker=] in |targetClient|. 1. Let |deserializeRecord| be StructuredDeserializeWithTransfer(|serializeWithTransferResult|, |destination|'s [=relevant Realm=]). diff --git a/docs/v1/index.bs b/docs/v1/index.bs index 91219ddd..733fb38e 100644 --- a/docs/v1/index.bs +++ b/docs/v1/index.bs @@ -387,7 +387,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
Otherwise
a new {{Client}} object that represents |incumbentGlobal|'s associated worker
- 1. Let |origin| be the [=Unicode serialization of an origin|Unicode serialization=] of |incumbentSettings|'s [=environment settings object/origin=]. + 1. Let |origin| be the [=serialization of an origin|serialization=] of |incumbentSettings|'s [=environment settings object/origin=]. 1. Let |destination| be the {{ServiceWorkerGlobalScope}} object associated with |serviceWorker|. 1. Let |deserializeRecord| be StructuredDeserializeWithTransfer(|serializeWithTransferResult|, |destination|'s [=global object/Realm=]). @@ -1018,7 +1018,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe 1. If |targetClient| is null, return. 1. Let |destination| be the {{ServiceWorkerContainer}} object whose associated [=ServiceWorkerContainer/service worker client=] is |targetClient|. 1. Add a [=task=] that runs the following steps to |destination|'s [=ServiceWorkerContainer/client message queue=]: - 1. Let |origin| be the [=Unicode serialization of an origin|Unicode serialization=] of |sourceSettings|'s [=environment settings object/origin=]. + 1. Let |origin| be the [=serialization of an origin|serialization=] of |sourceSettings|'s [=environment settings object/origin=]. 1. Let |source| be the result of [=getting the service worker object=] that represents |contextObject|'s [=relevant global object=]'s [=ServiceWorkerGlobalScope/service worker=] in |targetClient|. 1. Let |deserializeRecord| be StructuredDeserializeWithTransfer(|serializeWithTransferResult|, |destination|'s [=relevant Realm=]).