Chromium Code Reviews| Index: third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| index 0c6b3611c2b427cdc9156678b8d948ea885aeda8..5f6a736408aa2a698f9886dc7dee67c3fe36c82d 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| +++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
| @@ -516,7 +516,8 @@ void ResourceLoader::requestSynchronously() |
| RefPtr<ResourceLoadInfo> resourceLoadInfo = responseOut.toResourceResponse().resourceLoadInfo(); |
| int64_t encodedDataLength = resourceLoadInfo ? resourceLoadInfo->encodedDataLength : WebURLLoaderClient::kUnknownEncodedDataLength; |
| m_fetcher->didReceiveData(m_resource, dataOut.data(), dataOut.size(), encodedDataLength); |
| - m_resource->setResourceBuffer(dataOut); |
| + if (dataOut.size()) |
|
Yoav Weiss
2015/12/31 06:29:17
Isn't there a scenario where the response *has* ch
Nate Chapin
2016/01/04 22:15:54
In all non-revalidation cases, Resource::m_data wi
Yoav Weiss
2016/01/05 14:13:03
What's the relationship between Resource::m_data a
|
| + m_resource->setResourceBuffer(dataOut); |
| didFinishLoading(0, monotonicallyIncreasingTime(), encodedDataLength); |
| } |