Re: [ServiceWorker] setTimeout/setInterval are unreliable in ServiceWorkers (#838)

Thanks again for explaining Ben and the logic seems sound. (Otherwise there'd be all these indefinite promises lying around just to keep the SW alive :-)

I assume you don't allow something like: -

var dodgyEvent = new ExtendableEvent('message_OrSomethingElse');
self.addEventListener('message', function (e) { 
           var neverSettle = new Promise(function(resolve, reject) { });
           this.waitUntil(neverSettle);
           }
self.dispatchEvent(dodgyEvent);

Having said that I see a strong argument for "Install" and "Activate" events being protected but "Message" "Fetch" "Error" "Travel" really? Why should these events empower the developer with a termination veto?

Anyway, I've said it before and I'll say it again, this Service Worker stuff is absolutely amazing functionality! well done to all involved.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/838#issuecomment-188543924

Received on Thursday, 25 February 2016 01:09:26 UTC