Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1471)

Unified Diff: Source/core/xml/parser/XMLDocumentParser.cpp

Issue 47923008: Block execution of failed 'crossorigin' <script>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/xml/XSLTProcessorLibxslt.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/xml/XSLTProcessorLibxslt.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698