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

Unified Diff: content/renderer/render_view_impl.cc

Issue 128173002: Fix referrer policy passing during redirects (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 11 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 | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a10ae54eaae7e13001c50d0b7c13e3bafc3b8465..8b3855c961cf6732f5c146895f5ba303d333b5bb 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1963,9 +1963,7 @@ void RenderViewImpl::UpdateURL(WebFrame* frame) {
params.transition = static_cast<PageTransition>(
params.transition | PAGE_TRANSITION_CLIENT_REDIRECT);
} else {
- // Bug 654101: the referrer will be empty on https->http transitions. It
- // would be nice if we could get the real referrer from somewhere.
- params.referrer = GetReferrerFromRequest(frame, original_request);
+ params.referrer = GetReferrerFromRequest(frame, ds->request());
}
base::string16 method = request.httpMethod();
@@ -3587,6 +3585,7 @@ void RenderViewImpl::didCommitProvisionalLoad(WebFrame* frame,
internal_data->set_must_reset_scroll_and_scale_state(false);
}
internal_data->set_use_error_page(false);
+ internal_data->clear_referrer_policy();
if (is_new_navigation) {
// When we perform a new navigation, we need to update the last committed
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698