[whatwg/dom] Change add/remove event listener behavior for service workers (#653)

This changes addEventListener() and removeEventListener() to not throw even
after the very first evalution of the service worker script. Instead, this
specifies user agents have to show a console warning that the asynchronously
added listener's event type will not affect service worker's behavior with the
functional event stored during the first evaluation.

This change referneces the funcional event concept defined in Service Workers
spec, and confines the EventTarge object of the specified behavior to
ServiceWorkerGlobalScope object instead of all the platform object in the global
object.

Related SW issue: https://github.com/w3c/ServiceWorker/issues/1004.
Related SW PR: https://github.com/w3c/ServiceWorker/pull/1322.
Fixes https://github.com/whatwg/dom/issues/371.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/653

-- Commit Summary --

  * Change add/remove event listener behavior for service workers

-- File Changes --

    M dom.bs (33)

-- Patch Links --

https://github.com/whatwg/dom/pull/653.patch
https://github.com/whatwg/dom/pull/653.diff

-- 
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

Received on Wednesday, 6 June 2018 03:08:17 UTC