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

Unified Diff: chrome/browser/plugins/plugin_observer.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: chrome/browser/plugins/plugin_observer.cc
diff --git a/chrome/browser/plugins/plugin_observer.cc b/chrome/browser/plugins/plugin_observer.cc
index dfd0577432c97e4d78876ee5a6081bce51e39ad8..53b96a03150e751e9a685239879fe0ed708bd6db 100644
--- a/chrome/browser/plugins/plugin_observer.cc
+++ b/chrome/browser/plugins/plugin_observer.cc
@@ -441,8 +441,10 @@ void PluginObserver::OnRemovePluginPlaceholderHost(int placeholder_id) {
void PluginObserver::OnOpenAboutPlugins() {
web_contents()->OpenURL(OpenURLParams(
GURL(chrome::kChromeUIPluginsURL),
- content::Referrer(web_contents()->GetURL(),
- blink::WebReferrerPolicyDefault),
+ content::Referrer::SanitizeForRequest(
+ GURL(chrome::kChromeUIPluginsURL),
+ content::Referrer(web_contents()->GetURL(),
+ blink::WebReferrerPolicyDefault)),
NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_AUTO_BOOKMARK, false));
}

Powered by Google App Engine
This is Rietveld 408576698