Bug 1342567. r=aosmond a=dveditz

This commit is contained in:
Timothy Nikkel 2017-04-11 03:14:11 -05:00
parent c1bda06e96
commit ff22b71de5

View File

@ -2192,6 +2192,18 @@ imgLoader::LoadImage(nsIURI* aURI,
request->SetCacheEntry(entry);
if (mCacheTracker) {
if (MOZ_UNLIKELY(!entry->GetExpirationState()->IsTracked())) {
bool inCache = false;
RefPtr<imgCacheEntry> e;
if (cache.Get(key, getter_AddRefs(e)) && e) {
inCache = (e == entry);
}
gfxCriticalNoteOnce << "entry with no proxies is no in tracker "
<< "request->HasConsumers() "
<< (request->HasConsumers() ? "true" : "false")
<< " inCache " << (inCache ? "true" : "false");
}
mCacheTracker->MarkUsed(entry);
}
}