- From: Jake Archibald <notifications@github.com>
- Date: Sat, 07 Nov 2015 08:19:40 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Saturday, 7 November 2015 16:20:10 UTC
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