Re: [ServiceWorker] should service worker still install if onerror event handle cancels error from uncaught exception? (#778)

Yeah, I think Chrome's getting this wrong.

http://jsbin.com/hokowi/edit?js,console - we don't allow an idb to be created if an error is thrown in its `upgradeneeded` event, even if `window.onerror` returns true. 

IDB uses the following language:

> If an exception was propagated out from any event handler while dispatching the event in the previous step, abort the transaction

This seems to make sense to me. The error *has* propagated out from the event, so it should abort the transaction even if the error is "handled" in `window.onerror`. I think service worker should follow this model.

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

Received on Saturday, 7 November 2015 16:20:10 UTC