Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index f4c4ed818320cd5f7e6c0b2638ef6e5df0decdbc..d07e642813c508f7a2f2fa7f08d31099048ffafc 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -474,8 +474,8 @@ void XMLDocumentParser::notifyFinished(Resource* unusedResource) |
if (errorOccurred) |
scriptLoader->dispatchErrorEvent(); |
else if (!wasCanceled) { |
- scriptLoader->executeScript(sourceCode); |
- scriptLoader->dispatchLoadEvent(); |
+ if (scriptLoader->executePotentiallyCrossOriginScript(sourceCode)) |
+ scriptLoader->dispatchLoadEvent(); |
} |
m_scriptElement = 0; |