| Index: Source/core/dom/ScriptLoader.cpp
|
| diff --git a/Source/core/dom/ScriptLoader.cpp b/Source/core/dom/ScriptLoader.cpp
|
| index c71bd21fda83a557caa735aa5a07ca44ef74ddd8..50b120c43ec81a61ef75a083c15cfd70bba817f3 100644
|
| --- a/Source/core/dom/ScriptLoader.cpp
|
| +++ b/Source/core/dom/ScriptLoader.cpp
|
| @@ -324,6 +324,9 @@ void ScriptLoader::executeScript(const ScriptSourceCode& sourceCode)
|
| if (isHTMLScriptLoader(m_element))
|
| document->pushCurrentScript(toHTMLScriptElement(m_element));
|
|
|
| + if (!m_element->fastGetAttribute(HTMLNames::crossoriginAttr).isNull() && sourceCode.cachedScript() && sourceCode.cachedScript()->passesAccessControlCheck(m_element->document()->securityOrigin()))
|
| + m_element->document()->didLoadScriptThatPassedAccessControlCheck(sourceCode.cachedScript()->url());
|
| +
|
| // Create a script from the script element node, using the script
|
| // block's source and the script block's type.
|
| // Note: This is where the script is compiled and actually executed.
|
|
|