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

Unified Diff: Source/core/html/HTMLImportLoader.cpp

Issue 47923008: Block execution of failed 'crossorigin' <script>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minimize code changes + remove redundant leftovers. Created 7 years, 2 months 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
Index: Source/core/html/HTMLImportLoader.cpp
diff --git a/Source/core/html/HTMLImportLoader.cpp b/Source/core/html/HTMLImportLoader.cpp
index 3f8ca2f319328300201db22fb28a9fca9d5d3a35..f6c7fbbdd60de8cb649ee97f8f0528cf468b46c9 100644
--- a/Source/core/html/HTMLImportLoader.cpp
+++ b/Source/core/html/HTMLImportLoader.cpp
@@ -113,7 +113,7 @@ void HTMLImportLoader::didFinish()
HTMLImportLoader::State HTMLImportLoader::startWritingAndParsing(const ResourceResponse& response)
{
// Current canAccess() implementation isn't sufficient for catching cross-domain redirects: http://crbug.com/256976
- if (!m_parent->document()->fetcher()->canAccess(m_resource.get()))
+ if (!m_parent->document()->fetcher()->canAccess(m_resource.get(), true))
abarth-chromium 2013/11/14 16:34:48 If we keep this design, we should use an enum rath
sof 2013/11/15 08:05:23 Definitely agree. Now done, with hopefully compreh
return StateError;
DocumentInit init = DocumentInit(response.url(), 0, root()->document()->contextDocument(), this)

Powered by Google App Engine
This is Rietveld 408576698