| Index: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
|
| index b9910d859fe997daa7175c2d0744fe8affa8bbc6..f3f08e1c7e706afd93f66a594930a910f441912b 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
|
| @@ -355,7 +355,7 @@ static unsigned avoidDownloadIfHigherDensityResourceIsInCache(Vector<ImageCandid
|
| return winner;
|
| for (unsigned i = imageCandidates.size() - 1; i > winner; --i) {
|
| KURL url = document->completeURL(stripLeadingAndTrailingHTMLSpaces(imageCandidates[i]->url()));
|
| - if (memoryCache()->resourceForURL(url, document->fetcher()->getCacheIdentifier()))
|
| + if (memoryCache()->resourceForURL(url, document->fetcher()->getCacheIdentifier()) || url.protocolIsData())
|
| return i;
|
| }
|
| return winner;
|
|
|