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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp

Issue 1749153002: CORS-RFC1918: Teach ResourceRequest about "external" requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
index bf1a6f63a332c986f29e800a7ecc840dcf6ad699..4a39f752d64aa1ea35bbc22b067b7a572a3a0906 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp
@@ -98,6 +98,7 @@ void FileReaderLoader::startInternal(ExecutionContext& executionContext, const S
// Construct and load the request.
ResourceRequest request(m_urlForReading);
+ request.setIsExternalRequest(executionContext.securityContext().isHostedInReservedIPRange());
// FIXME: Should this really be 'internal'? Do we know anything about the actual request that generated this fetch?
request.setRequestContext(WebURLRequest::RequestContextInternal);

Powered by Google App Engine
This is Rietveld 408576698