- From: Jungkee Song <notifications@github.com>
- Date: Mon, 04 Nov 2019 09:37:07 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/653/review/311239204@github.com>
jungkees commented on this pull request. > - <p class="note no-backref">To avoid unnecessary delays, Service Workers [[!SERVICE-WORKERS]] - permits skipping event dispatch when no <a>event listeners</a> for the <a>service worker event</a> - have been deterministically added in the <a>service worker</a>’s <a for="service worker">set of - event types to handle</a> during the very first script evaluation. The <a>event listener</a> in - this step will still be added, but the implementations have to inform developers about this - behavior. + <p>If <var>eventTarget</var> is a {{ServiceWorkerGlobalScope}} object, its + <a for="ServiceWorkerGlobalScope">service worker</a>'s + <a for="service worker">script resource</a>'s + <a for="script resource">has ever been evaluated flag</a> is set, and <var>listener</var>'s + <a for="event listener">type</a> matches the {{Event/type}} attribute value of any of the + <a>service worker events</a>, then <a>report a warning to the console</a> that this might not give + the expected results. [[!SERVICE-WORKERS]] + + <p class="note no-backref">Service workers are only started for event listeners added during the + first script evaluation. I think [the change](https://github.com/w3c/ServiceWorker/commit/2f7119069da24c095f6a6a8c47cd07f89d6bf143) was made to match the implementation. @mattto, can you give us more context on why you used *may* in that change? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/653#discussion_r342178244
Received on Monday, 4 November 2019 17:37:10 UTC