| Index: Source/core/xml/parser/XMLDocumentParser.cpp
|
| diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp
|
| index 5d6a1eb3d4c5e97c2758b9baf21b03cabc80af36..5be6fc02007d0d66b2c181d7bccaa1965bc252db 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;
|
|
|