Index: third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
index caaea042ac8955098d60b23f8250229438d42f4a..c86f33b5fedb690b1ef71af9362ca46721eea205 100644 |
--- a/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -461,6 +461,9 @@ void XMLDocumentParser::notifyFinished(Resource* unusedResource) { |
scriptLoader->wasCreatedDuringDocumentWrite()); |
} |
+#if DCHECK_IS_ON() |
+ DCHECK(scriptLoader->isExternalScript()); |
+#endif |
if (!scriptLoader->executeScript(sourceCode)) |
scriptLoader->dispatchErrorEvent(); |
else |
@@ -1113,6 +1116,9 @@ void XMLDocumentParser::endElementNs() { |
// the libxml2 and Qt XMLDocumentParser implementations. |
if (scriptLoader->readyToBeParserExecuted()) { |
+#if DCHECK_IS_ON() |
+ DCHECK(!scriptLoader->isExternalScript()); |
+#endif |
if (!scriptLoader->executeScript( |
ScriptSourceCode(scriptLoader->scriptContent(), document()->url(), |
m_scriptStartPosition))) { |