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

Unified Diff: Source/core/frame/csp/CSPDirectiveList.cpp

Issue 1032473002: Ship "Upgrade Insecure Requests". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CSPTest Created 5 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
« no previous file with comments | « no previous file | Source/core/frame/csp/ContentSecurityPolicyTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/csp/CSPDirectiveList.cpp
diff --git a/Source/core/frame/csp/CSPDirectiveList.cpp b/Source/core/frame/csp/CSPDirectiveList.cpp
index 2354f9d1905494abcdd5c0e9e30139a05e877613..ddbe0accc062374731f272f0ade895ef4d0605ae 100644
--- a/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -760,13 +760,13 @@ void CSPDirectiveList::addDirective(const String& name, const String& value)
parseReflectedXSS(name, value);
} else if (equalIgnoringCase(name, ContentSecurityPolicy::Referrer)) {
parseReferrer(name, value);
+ } else if (equalIgnoringCase(name, ContentSecurityPolicy::UpgradeInsecureRequests)) {
+ enableInsecureRequestsUpgrade(name, value);
} else if (m_policy->experimentalFeaturesEnabled()) {
if (equalIgnoringCase(name, ContentSecurityPolicy::ManifestSrc))
setCSPDirective<SourceListDirective>(name, value, m_manifestSrc);
else if (equalIgnoringCase(name, ContentSecurityPolicy::BlockAllMixedContent))
enforceStrictMixedContentChecking(name, value);
- else if (equalIgnoringCase(name, ContentSecurityPolicy::UpgradeInsecureRequests))
- enableInsecureRequestsUpgrade(name, value);
else
m_policy->reportUnsupportedDirective(name);
} else {
« no previous file with comments | « no previous file | Source/core/frame/csp/ContentSecurityPolicyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698