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 d9f60581e018236f91e0e1782a8a29cb7fdb413c..a0bcc3b8993e1984ee146596deb973566f016d0d 100644 |
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp |
@@ -369,9 +369,9 @@ bool ScriptLoader::executeScript(const ScriptSourceCode& sourceCode, double* com |
const ContentSecurityPolicy* csp = elementDocument->contentSecurityPolicy(); |
bool shouldBypassMainWorldCSP = (frame && frame->script().shouldBypassMainWorldCSP()) |
|| csp->allowScriptWithNonce(m_element->fastGetAttribute(HTMLNames::nonceAttr)) |
- || csp->allowScriptWithHash(sourceCode.source()); |
+ || csp->allowScriptWithHash(sourceCode.source().toString()); |
- if (!m_isExternalScript && (!shouldBypassMainWorldCSP && !csp->allowInlineScript(elementDocument->url(), m_startLineNumber, sourceCode.source()))) { |
+ if (!m_isExternalScript && (!shouldBypassMainWorldCSP && !csp->allowInlineScript(elementDocument->url(), m_startLineNumber, sourceCode.source().toString()))) { |
return false; |
} |