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

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

Issue 856753003: MIX: Rename the CSP directive. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oops. Created 5 years, 11 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 | « Source/core/frame/csp/ContentSecurityPolicy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/csp/ContentSecurityPolicy.cpp
diff --git a/Source/core/frame/csp/ContentSecurityPolicy.cpp b/Source/core/frame/csp/ContentSecurityPolicy.cpp
index 37670f3e6b8d723edc6c70e3835c81b45e0c9137..004e7f1c0785a4c6006d8f62183621b7ee2ec50e 100644
--- a/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -91,7 +91,7 @@ const char ContentSecurityPolicy::ManifestSrc[] = "manifest-src";
// Mixed Content Directive
// https://w3c.github.io/webappsec/specs/mixedcontent/#strict-mode
-const char ContentSecurityPolicy::StrictMixedContentChecking[] = "strict-mixed-content-checking";
+const char ContentSecurityPolicy::BlockAllMixedContent[] = "block-all-mixed-content";
bool ContentSecurityPolicy::isDirectiveName(const String& name)
{
@@ -114,7 +114,7 @@ bool ContentSecurityPolicy::isDirectiveName(const String& name)
|| equalIgnoringCase(name, ReflectedXSS)
|| equalIgnoringCase(name, Referrer)
|| equalIgnoringCase(name, ManifestSrc)
- || equalIgnoringCase(name, StrictMixedContentChecking));
+ || equalIgnoringCase(name, BlockAllMixedContent));
}
static UseCounter::Feature getUseCounterType(ContentSecurityPolicyHeaderType type)
« no previous file with comments | « Source/core/frame/csp/ContentSecurityPolicy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698