| 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 b83b8399a6cb56c3fe9169ea8f9c767aac78aaba..aee39dc9f62b97532b365e0b8ce9aad2c8cade01 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| @@ -584,10 +584,13 @@ bool CSPDirectiveList::allowPluginType(
|
| bool CSPDirectiveList::allowScriptFromSource(
|
| const KURL& url,
|
| const String& nonce,
|
| + ParserDisposition parserDisposition,
|
| ResourceRequest::RedirectStatus redirectStatus,
|
| ContentSecurityPolicy::ReportingStatus reportingStatus) const {
|
| if (isMatchingNoncePresent(operativeDirective(m_scriptSrc.get()), nonce))
|
| return true;
|
| + if (parserDisposition == NotParserInserted && allowDynamic())
|
| + return true;
|
| return reportingStatus == ContentSecurityPolicy::SendReport
|
| ? checkSourceAndReportViolation(
|
| operativeDirective(m_scriptSrc.get()), url,
|
|
|