Commit 03545dd7 authored by horo's avatar horo Committed by Commit bot

[ServiceWorker] Treat a response whose status is 0 as an error.

BUG=411173
TEST=layouttest http/tests/serviceworker/

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

Cr-Commit-Position: refs/heads/master@{#295221}
parent 6f396e25
......@@ -365,6 +365,12 @@ void ServiceWorkerURLRequestJob::DidDispatchFetchEvent(
// We should have a response now.
DCHECK_EQ(SERVICE_WORKER_FETCH_EVENT_RESULT_RESPONSE, fetch_result);
// Treat a response whose status is 0 as an error.
if (response.status_code == 0) {
DeliverErrorResponse();
return;
}
// Set up a request for reading the blob.
if (!response.blob_uuid.empty() && blob_storage_context_) {
scoped_ptr<storage::BlobDataHandle> blob_data_handle =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment