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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 1274973002: Don't send the redirected request once the request was fallbacked to the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: place parentheses around the '&&' expression Created 5 years, 4 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: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 5758e343f8b719f5b7afe1f6e3c47bfbc9bfbf4a..1581f329c97d0df5e3cc68aa588e4544450fba95 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -549,7 +549,7 @@ bool WebURLLoaderImpl::Context::OnReceivedRedirect(
new_request.setUseStreamOnResponse(request_.useStreamOnResponse());
new_request.setRequestContext(request_.requestContext());
new_request.setFrameType(request_.frameType());
- new_request.setSkipServiceWorker(request_.skipServiceWorker());
+ new_request.setSkipServiceWorker(!info.was_fetched_via_service_worker);
new_request.setShouldResetAppCache(request_.shouldResetAppCache());
new_request.setFetchRequestMode(request_.fetchRequestMode());
new_request.setFetchCredentialsMode(request_.fetchCredentialsMode());

Powered by Google App Engine
This is Rietveld 408576698