Index: Source/core/html/parser/HTMLSrcsetParser.cpp |
diff --git a/Source/core/html/parser/HTMLSrcsetParser.cpp b/Source/core/html/parser/HTMLSrcsetParser.cpp |
index 8283ecd41536a733ce2d23e426c427da4eeffa4c..28cda2813e8a5e032a85153bfea27583cbd3bcd2 100644 |
--- a/Source/core/html/parser/HTMLSrcsetParser.cpp |
+++ b/Source/core/html/parser/HTMLSrcsetParser.cpp |
@@ -351,7 +351,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; |