| Index: third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
|
| index 88afa39d916a2a36115136ef176f2b1000c90df6..e4ffa2ff5f0327388647aa03e9fee06c7ff640eb 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLParserScriptRunner.cpp
|
| @@ -262,6 +262,9 @@ void HTMLParserScriptRunner::executePendingScriptAndDispatchEvent(
|
| monotonicallyIncreasingTime() - scriptParserBlockingTime,
|
| scriptLoader->wasCreatedDuringDocumentWrite());
|
| }
|
| +#if DCHECK_IS_ON()
|
| + DCHECK(scriptLoader->isExternalScript());
|
| +#endif
|
| if (!doExecuteScript(element, sourceCode, scriptStartPosition)) {
|
| scriptLoader->dispatchErrorEvent();
|
| } else {
|
| @@ -657,6 +660,9 @@ void HTMLParserScriptRunner::processScriptElementInternal(
|
| ScriptSourceCode sourceCode(script->textContent(),
|
| documentURLForScriptExecution(m_document),
|
| scriptStartPosition);
|
| +#if DCHECK_IS_ON()
|
| + DCHECK(!scriptLoader->isExternalScript());
|
| +#endif
|
| doExecuteScript(script, sourceCode, scriptStartPosition);
|
| }
|
| } else {
|
|
|