| Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| index 4bdfefc6cc7a7147cdca93bbf6659dc25093bb0f..899562df2db1ebcd3554b25ea72c55a4c6f26d97 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| @@ -1117,7 +1117,8 @@ void CSPDirectiveList::addDirective(const String& name, const String& value) {
|
| setCSPDirective<SourceListDirective>(name, value, m_baseURI);
|
| } else if (equalIgnoringCase(name, ContentSecurityPolicy::ChildSrc)) {
|
| setCSPDirective<SourceListDirective>(name, value, m_childSrc);
|
| - } else if (equalIgnoringCase(name, ContentSecurityPolicy::WorkerSrc)) {
|
| + } else if (equalIgnoringCase(name, ContentSecurityPolicy::WorkerSrc) &&
|
| + m_policy->experimentalFeaturesEnabled()) {
|
| setCSPDirective<SourceListDirective>(name, value, m_workerSrc);
|
| } else if (equalIgnoringCase(name, ContentSecurityPolicy::FormAction)) {
|
| setCSPDirective<SourceListDirective>(name, value, m_formAction);
|
|
|