- From: Ben Kelly <notifications@github.com>
- Date: Sat, 07 May 2016 10:22:54 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc:
Received on Saturday, 7 May 2016 17:23:28 UTC
Re-reading Jake's comment, I guess we want to discuss this here.
So firefox and chome act differently for these two cases. Both get something wrong compared to the current spec:
```
addEventListener('fetch', function(evt)) {
throw('boom');
});
```
Firefox treats this as a network error. Chrome continues the network request. Chrome conforms to the current spec text here:
```
addEventListener('fetch', function(evt)) {
evt.respondWith(new Response('hmm'));
throw('boom');
});
```
Firefox treats this as a network error. Chrome continue the network request. Firefox conforms to the current spec text here.
Chrome screenshot here:

So I guess we do need to figure out what we want to do and write some tests.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/892#issuecomment-217653212
Received on Saturday, 7 May 2016 17:23:28 UTC