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

Unified Diff: content/browser/loader/cross_site_resource_handler.cc

Issue 161003002: Do not trigger CrossSiteResourceHandler for streams or user certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/browser/loader/cross_site_resource_handler.cc
diff --git a/content/browser/loader/cross_site_resource_handler.cc b/content/browser/loader/cross_site_resource_handler.cc
index 5bed76777c540a5e31b4017247d83f2f6d651e72..486f48ecb06a8bf20e6f95bb5c793e4eb4915f09 100644
--- a/content/browser/loader/cross_site_resource_handler.cc
+++ b/content/browser/loader/cross_site_resource_handler.cc
@@ -161,7 +161,7 @@ bool CrossSiteResourceHandler::OnResponseStarted(
// navigation) will stick around until the next cross-site navigation, since
// we are unable to tell when to destroy it.
// See RenderFrameHostManager::RendererAbortedProvisionalLoad.
- if (!swap_needed || info->IsDownload() ||
+ if (!swap_needed || info->IsDownload() || info->is_stream() ||
davidben 2014/02/12 19:57:56 It's possible we should just set the IsDownload bi
Zachary Kuznia 2014/02/12 22:04:48 IsDownload and is_stream should be mutually exclus
davidben 2014/02/12 22:18:56 Right, but the question is whether consumers of th
Charlie Reis 2014/02/13 01:45:07 I agree that the current approach is error prone.
davidben 2014/02/13 03:48:28 The other callers seem to be more interested in th
Charlie Reis 2014/02/13 19:33:05 I'll defer to networking folks on that decision, s
(response->head.headers.get() &&
response->head.headers->response_code() == 204)) {
return next_handler_->OnResponseStarted(request_id, response, defer);

Powered by Google App Engine
This is Rietveld 408576698