- From: Matt Falkenhagen <notifications@github.com>
- Date: Tue, 21 Jul 2015 19:00:00 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 22 July 2015 02:00:31 UTC
Consensus at the Service Worker informal working session F2F was to not observe listeners, and instead add a method like disableFetch() to be called in the install event handler. Reasoning: - observing listeners would break the invariant that addEventListener has no side effects, potentially making SW spec's event model diverge from DOM spec's. - having an explicit listener list is an alternative; however fetch event is the only one you need it for as the others are already opt-in. - an explicit listener enableFetch() would break current sites - therefore, disableFetch() was chosen --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/718#issuecomment-123530545
Received on Wednesday, 22 July 2015 02:00:31 UTC