[ServiceWorker] Change the error handling of dispatching fetch event to the ServiceWo...
commit7c695c2119dcb0338d08ed150a962387e67c3b51
authorhoro <horo@chromium.org>
Fri, 26 Dec 2014 01:42:51 +0000 (25 17:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Dec 2014 01:43:58 +0000 (26 01:43 +0000)
tree035b4a0d634c2c70198cd4bf8521bc4feb938574
parent2f206e1f6237f5efe98792d860c3cb1bd57bc6f5
[ServiceWorker] Change the error handling of dispatching fetch event to the ServiceWorker.

In current implementation, when ServiceWorkerURLRequestJob
fails to dispatch the fetch event to the ServiceWorker,
the fetch request falls back to the network.

But it should return an error to the page. Because it is
hard to notice the unexpected worker termination. And also
CORS-preflight check may be bypassed using ServiceWorker
crash bugs.

BUG=437130

Review URL: https://codereview.chromium.org/826513003

Cr-Commit-Position: refs/heads/master@{#309657}
content/browser/service_worker/service_worker_url_request_job.cc