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

Unified Diff: components/navigation_interception/intercept_navigation_resource_throttle.cc

Issue 898613004: Sanitize referrers before we create them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: components/navigation_interception/intercept_navigation_resource_throttle.cc
diff --git a/components/navigation_interception/intercept_navigation_resource_throttle.cc b/components/navigation_interception/intercept_navigation_resource_throttle.cc
index 4ed560c99d65f12d08171d01cb8f10d9bbab0317..f54eb99d88c2fe7a19366e9f3f710be5729e10d2 100644
--- a/components/navigation_interception/intercept_navigation_resource_throttle.cc
+++ b/components/navigation_interception/intercept_navigation_resource_throttle.cc
@@ -117,7 +117,9 @@ bool InterceptNavigationResourceThrottle::CheckIfShouldIgnoreNavigation(
!info->GetContext()->GetRequestContext()->job_factory()->IsHandledURL(
url);
NavigationParams navigation_params(
- url, Referrer(GURL(request_->referrer()), info->GetReferrerPolicy()),
+ url,
+ Referrer::SanitizeForRequest(
+ url, Referrer(GURL(request_->referrer()), info->GetReferrerPolicy())),
info->HasUserGesture(), method == "POST", info->GetPageTransition(),
is_redirect, is_external_protocol);

Powered by Google App Engine
This is Rietveld 408576698