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

Unified Diff: net/url_request/url_request_redirect_job.cc

Issue 212543005: Do not copy reference fragments for overridden redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add URLRequestJob::IsRedirectFragmentModificationAllowed Created 6 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
Index: net/url_request/url_request_redirect_job.cc
diff --git a/net/url_request/url_request_redirect_job.cc b/net/url_request/url_request_redirect_job.cc
index c9d30aebedd432612dcd0ee1b839a181d485cfc6..644fcf6625857452d939cfdf525800a943588463 100644
--- a/net/url_request/url_request_redirect_job.cc
+++ b/net/url_request/url_request_redirect_job.cc
@@ -44,6 +44,13 @@ bool URLRequestRedirectJob::IsRedirectResponse(GURL* location,
return true;
}
+bool URLRequestRedirectJob::IsRedirectFragmentModificationAllowed(
+ const GURL& location) {
+ // The instantiators have full control over the desired redirection target,
+ // including the reference fragment part of the URL.
mmenke 2014/03/31 20:45:49 This behavior should be documented in NetworkDeleg
robwu 2014/04/01 16:09:33 Done.
+ return false;
+}
+
URLRequestRedirectJob::~URLRequestRedirectJob() {}
void URLRequestRedirectJob::StartAsync() {

Powered by Google App Engine
This is Rietveld 408576698