| Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| index 9f5d2b75903e98346809df0c6a90e61e9edc72f1..49dd13718688ba96105249ab497e914b2644096f 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| @@ -463,6 +463,17 @@ bool ContentSecurityPolicy::allowEval(ScriptState* scriptState, ContentSecurityP
|
| return isAllowedByAllWithStateAndExceptionStatus<&CSPDirectiveList::allowEval>(m_policies, scriptState, reportingStatus, exceptionStatus);
|
| }
|
|
|
| +bool ContentSecurityPolicy::allowDynamic() const
|
| +{
|
| + if (!experimentalFeaturesEnabled())
|
| + return false;
|
| + for (const auto& policy : m_policies) {
|
| + if (!policy->allowDynamic())
|
| + return false;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| String ContentSecurityPolicy::evalDisabledErrorMessage() const
|
| {
|
| for (const auto& policy : m_policies) {
|
|
|