Chromium Code Reviews| 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 036617aaed8c7b057bea49c18cbb98ceaf317d92..2eab256f5582f2d817165b807bcb62a0d86d51da 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| +++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp |
| @@ -664,9 +664,7 @@ ResourceFetcher::RevalidationPolicy ResourceFetcher::determineRevalidationPolicy |
| // affected by m_imagesEnabled but not m_autoLoadImages, in order to |
| // allow for this differing behavior. |
| // TODO(japhet): Can we get rid of one of these settings? |
| - if (FetchRequest::DeferredByClient == fetchRequest.defer()) |
| - return Reload; |
| - if (existingResource->isImage() && !context().allowImage(m_imagesEnabled, existingResource->url())) |
| + if (existingResource->isImage() && (FetchRequest::DeferredByClient == fetchRequest.defer() || !context().allowImage(m_imagesEnabled, existingResource->url()))) |
|
Takashi Toyoshima
2016/04/11 11:51:54
So, we will return USE for font resources even if
Nate Chapin
2016/04/11 18:47:32
Correct. This logic is a messy special-case for Im
|
| return Reload; |
| // Never use cache entries for downloadToFile / useStreamOnResponse |