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

Unified Diff: net/url_request/url_request.cc

Issue 387013: Detect when first_party_for_cookies_ needs to be updated on redirect.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
===================================================================
--- net/url_request/url_request.cc (revision 31201)
+++ net/url_request/url_request.cc (working copy)
@@ -457,6 +457,9 @@
method_ = "GET";
upload_ = NULL;
}
+ // If first_party_for_cookies_ is redirected, update it to the new location.
+ if (first_party_for_cookies_ == url_)
+ first_party_for_cookies_ = location;
url_ = location;
--redirect_limit_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698