Chromium Code Reviews| Index: Source/core/fileapi/FileReaderLoader.cpp |
| diff --git a/Source/core/fileapi/FileReaderLoader.cpp b/Source/core/fileapi/FileReaderLoader.cpp |
| index fc3d3f61979d9991d25f886427e5f05926182ac9..6b508002744b6c9d884244e00efb7a1eff501e66 100644 |
| --- a/Source/core/fileapi/FileReaderLoader.cpp |
| +++ b/Source/core/fileapi/FileReaderLoader.cpp |
| @@ -105,19 +105,21 @@ void FileReaderLoader::startInternal(ExecutionContext& executionContext, const S |
| request.setHTTPHeaderField("Range", AtomicString(String::format("bytes=%d-%d", m_rangeStart, m_rangeEnd))); |
| ThreadableLoaderOptions options; |
| - options.sniffContent = DoNotSniffContent; |
| options.preflightPolicy = ConsiderPreflight; |
| - options.allowCredentials = AllowStoredCredentials; |
| options.crossOriginRequestPolicy = DenyCrossOriginRequests; |
| // FIXME: Is there a directive to which this load should be subject? |
| options.contentSecurityPolicyEnforcement = DoNotEnforceContentSecurityPolicy; |
| // Use special initiator to hide the request from the inspector. |
| options.initiator = FetchInitiatorTypeNames::internal; |
| + ResourceLoaderOptions resourceLoaderOptions; |
| + resourceLoaderOptions.sniffContent = DoNotSniffContent; |
|
tkent
2014/06/02 08:08:56
This line is unnecessary. DoNotSniffContent is th
tyoshino (SeeGerritForStatus)
2014/06/02 08:21:35
Done.
|
| + resourceLoaderOptions.allowCredentials = AllowStoredCredentials; |
| + |
| if (m_client) |
| - m_loader = ThreadableLoader::create(executionContext, this, request, options); |
| + m_loader = ThreadableLoader::create(executionContext, this, request, options, resourceLoaderOptions); |
| else |
| - ThreadableLoader::loadResourceSynchronously(executionContext, request, *this, options); |
| + ThreadableLoader::loadResourceSynchronously(executionContext, request, *this, options, resourceLoaderOptions); |
| } |
| void FileReaderLoader::start(ExecutionContext* executionContext, PassRefPtr<BlobDataHandle> blobData) |