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

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

Issue 2083983002: Rename 'unsafe-dynamic' to 'strict-dynamic' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
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 f9915535caf4d7fd4bd50b327af9e46aeef4f2fd..cb6285317ba2481476f6ebb68525acaf9864abf9 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp
@@ -176,8 +176,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;
}
@@ -503,7 +503,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