| 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 27bba37015b40bd5592ecea7b13b70afe2f3a9fc..bf589315c35aac506df393c99fd852b9994c0ea3 100644
|
| --- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
|
| @@ -735,7 +735,8 @@ bool ScriptLoader::doExecuteScript(const ScriptSourceCode& sourceCode) {
|
| AccessControlStatus accessControlStatus = NotSharableCrossOrigin;
|
| if (!m_isExternalScript) {
|
| accessControlStatus = SharableCrossOrigin;
|
| - } else if (sourceCode.resource()) {
|
| + } else {
|
| + CHECK(sourceCode.resource());
|
| accessControlStatus = sourceCode.resource()->calculateAccessControlStatus(
|
| m_element->document().getSecurityOrigin());
|
| }
|
|
|