Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp

Issue 2592113003: Load data URI images in an async way according to spec (take 3) (Closed)
Patch Set: Fixed more devtools reliance on sync loading Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 900b93dbabf0727c563c0f280f9598a263ef1e35..298834acafc36e574f5ec7f316beef3bea8981c8 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.cpp
@@ -395,7 +395,8 @@ static unsigned avoidDownloadIfHigherDensityResourceIsInCache(
KURL url = document->completeURL(
stripLeadingAndTrailingHTMLSpaces(imageCandidates[i]->url()));
if (memoryCache()->resourceForURL(
- url, document->fetcher()->getCacheIdentifier()))
+ url, document->fetcher()->getCacheIdentifier()) ||
+ url.protocolIsData())
return i;
}
return winner;

Powered by Google App Engine
This is Rietveld 408576698