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

Unified Diff: content/renderer/render_view_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: TabContents is now WebContentsImpl Created 8 years, 8 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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 48765f474add8673fef28062642ec95b31d71471..9b25caa173bb8ddd8635d7167592be8daa88dd9f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2666,6 +2666,7 @@ NavigationState* RenderViewImpl::CreateNavigationStateFromPending() {
params.transferred_request_child_id);
navigation_state->set_transferred_request_request_id(
params.transferred_request_request_id);
+ navigation_state->set_allow_download(params.allow_download);
} else {
navigation_state = NavigationState::CreateContentInitiated();
}
@@ -3075,7 +3076,7 @@ void RenderViewImpl::willSendRequest(WebFrame* frame,
GURL request_url(request.url());
GURL new_url;
if (content::GetContentClient()->renderer()->WillSendRequest(
- frame, request_url, &new_url)) {
+ frame, request_url, &new_url)) {
request.setURL(WebURL(new_url));
}
@@ -3094,6 +3095,7 @@ void RenderViewImpl::willSendRequest(WebFrame* frame,
frame->identifier(),
frame->parent() == top_frame,
frame->parent() ? frame->parent()->identifier() : -1,
+ navigation_state->allow_download(),
transition_type,
navigation_state->transferred_request_child_id(),
navigation_state->transferred_request_request_id()));

Powered by Google App Engine
This is Rietveld 408576698