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

Maybe adding steps to the event loop processing model and the perform the microtask check point that store the global object's event listener's list to the global object's associated service worker's set of event types to handle item? I think that seems feasible if we'd have a handle to the task's global object or something like that. Then, we use that dynamically updating _set of event types to handle_ state to check the service worker needs to be started.

To sum, we might add steps to the task processing model to update the listener list state dynamically and remove the behavior related to https://w3c.github.io/ServiceWorker/#dfn-has-ever-been-evaluated-flag. Would it make sense?

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

Received on Friday, 16 March 2018 11:46:03 UTC