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

Unified Diff: Source/core/loader/DocumentThreadableLoader.cpp

Issue 54173002: Allow accessing data URL resource using CORS (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « LayoutTests/fast/xmlhttprequest/xmlhttprequest-data-url-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentThreadableLoader.cpp
diff --git a/Source/core/loader/DocumentThreadableLoader.cpp b/Source/core/loader/DocumentThreadableLoader.cpp
index 97bf370f3c5b39a31cc871ede83da56afdda27dd..edf640d0c2c11f43cf7112b6c2662be12fbfaa97 100644
--- a/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/Source/core/loader/DocumentThreadableLoader.cpp
@@ -73,7 +73,7 @@ DocumentThreadableLoader::DocumentThreadableLoader(Document* document, Threadabl
: m_client(client)
, m_document(document)
, m_options(options)
- , m_sameOriginRequest(securityOrigin()->canRequest(request.url()))
+ , m_sameOriginRequest(securityOrigin()->canRequest(request.url()) || request.url().protocolIsData())
, m_simpleRequest(true)
, m_async(blockingBehavior == LoadAsynchronously)
, m_timeoutTimer(this, &DocumentThreadableLoader::didTimeout)
« no previous file with comments | « LayoutTests/fast/xmlhttprequest/xmlhttprequest-data-url-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698