mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 09:54:42 +00:00
Bug 1342567. r=aosmond a=dveditz
This commit is contained in:
parent
c1bda06e96
commit
ff22b71de5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user