Re: [slightlyoff/ServiceWorker] Never fail for navigation requests (#892)

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:

![screenshot 2016-05-07 13 21 41](https://cloud.githubusercontent.com/assets/1256526/15093450/b311dbf8-1456-11e6-9482-52b13354fd44.png)

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