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

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

Issue 2708873002: Stop CSP from matching independent scheme/port upgrades (Closed)
Patch Set: 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/CSPSource.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSource.h b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
index bcf85da701a255492a04d0e1528801136c5449f2..84d03996fd223f5847dbe679040f7054658f0e25 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSource.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSource.h
@@ -65,6 +65,7 @@ class CORE_EXPORT CSPSource : public GarbageCollectedFinalized<CSPSource> {
bool pathMatches(const String&) const;
// Protocol is necessary to determine default port if it is zero.
bool portMatches(int port, const String& protocol) const;
+ bool portAndSchemeUpgradeAllowed(int port, const String& protocol) const;
bool isSimilar(CSPSource* other) const;
Member<ContentSecurityPolicy> m_policy;

Powered by Google App Engine
This is Rietveld 408576698