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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host_impl.cc

Issue 9808029: Prepending view-source: does not load the source of the userscript. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed comments. Created 8 years, 9 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/browser/tab_contents/tab_contents.cc » ('j') | content/common/resource_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host_impl.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.cc b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
index d7ea8ad9b7a536e511d4b4a27483804487b78132..28a01b509ca297912d922293359c2dc990cde55a 100644
--- a/content/browser/renderer_host/resource_dispatcher_host_impl.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
@@ -887,6 +887,8 @@ void ResourceDispatcherHostImpl::BeginRequest(
}
}
+ bool allow_download = request_data.allow_download &&
+ ResourceType::IsFrame(request_data.resource_type);
// Make extra info and read footer (contains request ID).
ResourceRequestInfoImpl* extra_info =
new ResourceRequestInfoImpl(
@@ -904,7 +906,7 @@ void ResourceDispatcherHostImpl::BeginRequest(
request_data.transition_type,
upload_size,
false, // is download
- ResourceType::IsFrame(request_data.resource_type), // allow_download
+ allow_download,
request_data.has_user_gesture,
request_data.referrer_policy,
resource_context);
« no previous file with comments | « no previous file | content/browser/tab_contents/tab_contents.cc » ('j') | content/common/resource_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698