Chromium Code Reviews| Index: Source/core/html/parser/HTMLScriptRunner.cpp |
| diff --git a/Source/core/html/parser/HTMLScriptRunner.cpp b/Source/core/html/parser/HTMLScriptRunner.cpp |
| index c8b9c6c27c7c249580a1311b6283b399f930d481..1cb6555c24302563b70b8f8141c92779099b83e1 100644 |
| --- a/Source/core/html/parser/HTMLScriptRunner.cpp |
| +++ b/Source/core/html/parser/HTMLScriptRunner.cpp |
| @@ -137,8 +137,8 @@ void HTMLScriptRunner::executePendingScriptAndDispatchEvent(PendingScript& pendi |
| scriptLoader->dispatchErrorEvent(); |
| else { |
| ASSERT(isExecutingScript()); |
| - scriptLoader->executeScript(sourceCode); |
| - element->dispatchEvent(createScriptLoadEvent()); |
| + if (scriptLoader->executePotentiallyCrossOriginScript(sourceCode)) |
|
abarth-chromium
2013/11/14 16:34:48
I see, the return value is used here. I'm surpris
|
| + element->dispatchEvent(createScriptLoadEvent()); |
| } |
| } |
| ASSERT(!isExecutingScript()); |