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

Unified Diff: content/browser/service_worker/service_worker_cache_listener.cc

Issue 672733002: [ServiceWorkerCache] Don't handle response blobs if they don't exist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_cache_listener.cc
diff --git a/content/browser/service_worker/service_worker_cache_listener.cc b/content/browser/service_worker/service_worker_cache_listener.cc
index c4baad302a72832478cadee10a70ff45ae13609c..dd2f1507854687b22e93350402754941562ecd8d 100644
--- a/content/browser/service_worker/service_worker_cache_listener.cc
+++ b/content/browser/service_worker/service_worker_cache_listener.cc
@@ -356,7 +356,8 @@ void ServiceWorkerCacheListener::OnCacheMatchCallback(
return;
}
- StoreBlobDataHandle(blob_data_handle.Pass());
+ if (blob_data_handle)
+ StoreBlobDataHandle(blob_data_handle.Pass());
Send(ServiceWorkerMsg_CacheMatchSuccess(request_id, *response));
}
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698