Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1331)

Unified Diff: Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 399543002: [ServiceWorker] Make fetch() method better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
diff --git a/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp b/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
index 8a4d5c1806fa804d2bfa3ef6e9725f7dc2345855..4120bafb7f39fa65de5fce1259ff1493b7514563 100644
--- a/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -80,6 +80,10 @@ void ServiceWorkerGlobalScopeClientImpl::didHandleFetchEvent(int fetchEventID, P
WebServiceWorkerResponse webResponse;
response->populateWebServiceWorkerResponse(webResponse);
+ if (webResponse.status() == 0) {
yhirano 2014/07/16 13:12:27 Can you write a comment here?
horo 2014/07/18 09:12:18 Done.
+ m_client.didHandleFetchEvent(fetchEventID);
+ return;
+ }
m_client.didHandleFetchEvent(fetchEventID, webResponse);
}

Powered by Google App Engine
This is Rietveld 408576698