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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp

Issue 2082613002: Rename 'unsafe-dynamic' to 'strict-dynamic' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/CSPSourceList.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
index ccd38779cf7ad5fd1512ec67a6f5c1922ab192c8..9c885b7366c11e6ae7e31fd6e4a1c44551d10386 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
@@ -177,8 +177,8 @@ bool CSPSourceList::parseSource(const UChar* begin, const UChar* end, String& sc
return true;
}
- if (equalIgnoringCase("'unsafe-dynamic'", begin, end - begin)) {
- addSourceUnsafeDynamic();
+ if (equalIgnoringCase("'strict-dynamic'", begin, end - begin)) {
+ addSourceStrictDynamic();
return true;
}
@@ -504,7 +504,7 @@ void CSPSourceList::addSourceUnsafeEval()
m_allowEval = true;
}
-void CSPSourceList::addSourceUnsafeDynamic()
+void CSPSourceList::addSourceStrictDynamic()
{
m_allowDynamic = true;
}

Powered by Google App Engine
This is Rietveld 408576698