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

Unified Diff: content/common/content_security_policy/csp_source_list.cc

Issue 2792013002: Stop CSP from matching independent scheme/port upgrades (content layer) (Closed)
Patch Set: Format changes Created 3 years, 8 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: content/common/content_security_policy/csp_source_list.cc
diff --git a/content/common/content_security_policy/csp_source_list.cc b/content/common/content_security_policy/csp_source_list.cc
index 9ce5d0582b9ce2fd33e79fab23a5707380cc1bf5..be6ba9c4b0697cb59cab814faddcf8bf542c7108 100644
--- a/content/common/content_security_policy/csp_source_list.cc
+++ b/content/common/content_security_policy/csp_source_list.cc
@@ -45,7 +45,7 @@ bool CSPSourceList::Allow(const CSPSourceList& source_list,
if (source_list.allow_star) {
if (url.SchemeIsHTTPOrHTTPS() || url.SchemeIsSuborigin() ||
url.SchemeIsWSOrWSS() || url.SchemeIs("ftp") ||
- context->ProtocolMatchesSelf(url))
+ context->ProtocolIsSelf(url))
return true;
return AllowFromSources(url, source_list.sources, context, is_redirect);
« no previous file with comments | « content/common/content_security_policy/csp_source.cc ('k') | content/common/content_security_policy/csp_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698