- From: Jungkee Song <notifications@github.com>
- Date: Tue, 29 Nov 2016 21:57:01 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1014/review/10695150@github.com>
jungkees commented on this pull request.
> - <li>If the <a for="resource">origin</a> of the result of <a lt="URL parser">parsing</a> <var>entry</var>.\[[key]] is the <a lt="same origin">same</a> as <var>client</var>'s <a for="resource">origin</a>, and <var>entry</var>.\[[value]]'s <a href="#dfn-uninstalling-flag">uninstalling flag</a> is unset, add the {{ServiceWorkerRegistration}} object associated with <var>entry</var>.\[[value]] to the <var>array</var>.</li>
- </ol>
- </li>
- <li>Resolve <var>promise</var> with <var>array</var>.</li>
- </ol>
- </li>
- <li>Return <var>promise</var>.</li>
- </ol>
+ <dfn method for="ServiceWorkerContainer"><code>getRegistrations()</code></dfn> method *must* run these steps:
+
+ 1. Let |client| be the <a>context object</a>'s <a for="ServiceWorkerContainer">service worker client</a>.
+ 1. Let |promise| be a new <a>promise</a>.
+ 1. Run the following substeps <a>in parallel</a>:
+ 1. Let |array| be an empty array.
+ 1. <a for="map">For each</a> |key| → |value| of <a>scope to registration map</a>:
+ 1. If the <a for="environment settings object">origin</a> of the result of <a lt="URL parser">parsing</a> |key| is the <a lt="same origin">same</a> as |client|'s <a for="environment settings object">origin</a>, and |value|'s <a>uninstalling flag</a> is unset, add the {{ServiceWorkerRegistration}} object associated with |value| to the |array|.
Addressed.
--
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/1014
Received on Wednesday, 30 November 2016 05:57:35 UTC