- From: Jungkee Song <notifications@github.com>
- Date: Wed, 01 Mar 2017 21:45:49 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1084/review/24657152@github.com>
jungkees commented on this pull request. > @@ -362,7 +362,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe 1. Let the {{ExtendableMessageEvent/data}} attribute of |e| be initialized to |clonedMessage|. 1. Let the {{ExtendableMessageEvent/origin}} attribute of |e| be initialized to the <a lt="Unicode serialization of an origin">Unicode serialization</a> of |incumbentSettings|'s [=environment settings object/origin=]. 1. If |incumbentGlobal| is a {{ServiceWorkerGlobalScope}} object, let the {{ExtendableMessageEvent/source}} attribute of |e| be initialized to a new {{ServiceWorker}} object that represents |incumbentGlobal|'s [=ServiceWorkerGlobalScope/service worker=]. - 1. Else if |incumbentGlobal| is a {{Window}} object, let the {{ExtendableMessageEvent/source}} attribute of |e| be initialized to a new {{WindowClient}} object that represents |incumbentGlobal|'s [=/browsing context=]. + 1. Else if |incumbentGlobal| is a {{Window}} object, let the {{ExtendableMessageEvent/source}} attribute of |e| be initialized to a new {{WindowClient}} object that represents |incumbentGlobal|'s [=/environment settings object=]. I understand what you mean and agree that the browsing context doesn't fit here. I was concerned more about whether saying "a new WindowClient object that represents incumbentGlobalās environment settings object" would be enough or explicitly invoking the creation algorithm would be needed. Anyway, I'm happy to merge this change as the browsing context is not correct here. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1084#discussion_r103855138
Received on Thursday, 2 March 2017 19:55:16 UTC