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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h

Issue 2708873002: Stop CSP from matching independent scheme/port upgrades (Closed)
Patch Set: Refactoring port/scheme matching logic to have an easier time with auto-upgrading Created 3 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: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index 7e972cc62c636e6730ba9a671235ea76d5825b09..89dbb942c752de49586cbe77a44d2dd8983f5738 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -334,7 +334,8 @@ class CORE_EXPORT ContentSecurityPolicy
}
bool urlMatchesSelf(const KURL&) const;
- bool protocolMatchesSelf(const KURL&) const;
+ bool protocolEqualsSelf(const String&) const;
+ const String& getSelfProtocol() const;
bool selfMatchesInnerURL() const;
bool experimentalFeaturesEnabled() const;

Powered by Google App Engine
This is Rietveld 408576698