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

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

Issue 2708873002: Stop CSP from matching independent scheme/port upgrades (Closed)
Patch Set: rebase-update Created 3 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: 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 2f6dd7b782f7d8ebf41a1131332c5759f8279514..48d7c818d033f68c4ae6f97db66e42b65714d874 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -365,7 +365,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 experimentalFeaturesEnabled() const;

Powered by Google App Engine
This is Rietveld 408576698