Index: third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
index ea786f0c5fddcc5fbd0a16715c34d8556e14e60b..471a724b2edecac67d544a5c94e8991e2f113b74 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -370,10 +370,10 @@ bool ScriptLoader::executeScript(const ScriptSourceCode& sourceCode) |
const ContentSecurityPolicy* csp = elementDocument->contentSecurityPolicy(); |
bool shouldBypassMainWorldCSP = (frame && frame->script().shouldBypassMainWorldCSP()) |
- || csp->allowScriptWithHash(sourceCode.source().toString(), ContentSecurityPolicy::InlineType::Block) |
+ || csp->allowScriptWithHash(sourceCode.source(), ContentSecurityPolicy::InlineType::Block) |
|| (!isParserInserted() && csp->allowDynamic()); |
- if (!m_isExternalScript && (!shouldBypassMainWorldCSP && !csp->allowInlineScript(elementDocument->url(), m_element->fastGetAttribute(HTMLNames::nonceAttr), m_startLineNumber, sourceCode.source().toString()))) { |
+ if (!m_isExternalScript && (!shouldBypassMainWorldCSP && !csp->allowInlineScript(elementDocument->url(), m_element->fastGetAttribute(HTMLNames::nonceAttr), m_startLineNumber, sourceCode.source()))) { |
return false; |
} |