Re: [whatwg/dom] Nerfing all events on all event targets in a serviceworker after initial script evaluation seems odd (#371)

Okay, great. @bzbarsky I assume that works for you too?

I guess what remains here are tests. But this means that in the DOM, we'll remove these lines:

> If eventTarget’s relevant global object is a ServiceWorkerGlobalScope object and its associated service worker’s script resource’s has ever been evaluated flag is set, then throw a TypeError.

> If the context object’s relevant global object is a ServiceWorkerGlobalScope object and its associated service worker’s script resource’s has ever been evaluated flag is set, then throw a TypeError.

or alternatively rephrase them with the suggestion to say something in the error console (and also only do it if the context object is the global object). Unfortunately https://github.com/whatwg/console/issues/57 is still open.

-- 
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/issues/371#issuecomment-378244332

Received on Tuesday, 3 April 2018 13:12:11 UTC