| Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| index 8625e38192b69d9e95a3b2bc2312721cc125fd82..cb5d0197f91520ef8b88fb5b2797e74fefcdbd67 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
|
| @@ -350,7 +350,10 @@ PassRefPtrWillBeRawPtr<Resource> ResourceFetcher::resourceForStaticData(const Fe
|
| resource->setIdentifier(createUniqueIdentifier());
|
| resource->setCacheIdentifier(cacheIdentifier);
|
| resource->finish();
|
| - memoryCache()->add(resource.get());
|
| +
|
| + if (!substituteData.isValid())
|
| + memoryCache()->add(resource.get());
|
| +
|
| return resource.release();
|
| }
|
|
|
|
|