- From: Jungkee Song <notifications@github.com>
- Date: Tue, 08 Oct 2019 12:06:35 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/653/review/298984512@github.com>
jungkees commented on this pull request. > @@ -1118,11 +1120,12 @@ and an <a>event listener</a> <var>listener</var>, set <var>listener</var>'s method, when invoked, must run these steps: <ol> - <li><p>If the <a>context object</a>'s <a>relevant global object</a> is a - {{ServiceWorkerGlobalScope}} object and its associated <a>service worker</a>'s - <a for="service worker">script resource</a>'s - <a for="script resource">has ever been evaluated flag</a> is set, then <a>throw</a> a - <code>TypeError</code>. [[!SERVICE-WORKERS]] + <li><p>If the <a>context object</a> is a {{ServiceWorkerGlobalScope}} object and its associated + <a>service worker</a>'s <a for="service worker">script resource</a>'s + <a for="script resource">has ever been evaluated flag</a> is set, then + <a>report a warning to the console</a> with a description explaining that the user agent will still + start the <a>service worker</a> for the <a>service worker event</a> that was synchronously added. Thinking over it again, I think what we want to achieve for removeEventListener() is to warn, regardless whether it's called sync or async, removing the listener won't effect the service worker start-up if the service worker event was added in the script evaluation. Update the text in the follow-up commit. -- 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_r332682942
Received on Tuesday, 8 October 2019 19:06:42 UTC