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

Unified Diff: net/url_request/url_request.cc

Issue 2100583002: Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update ios switch Created 4 years, 6 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: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 7fac9c77caf2a50c1052cc72ac4880ea96dbac05..fddf15365e5f8b9d93f02336cd772ba14ac94766 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -978,6 +978,7 @@ int URLRequest::Redirect(const RedirectInfo& redirect_info) {
}
referrer_ = redirect_info.new_referrer;
+ referrer_policy_ = redirect_info.new_referrer_policy;
first_party_for_cookies_ = redirect_info.new_first_party_for_cookies;
token_binding_referrer_ = redirect_info.referred_token_binding_host;

Powered by Google App Engine
This is Rietveld 408576698