diff --git a/image/imgLoader.cpp b/image/imgLoader.cpp index 50491aea6e78..93a181c70999 100644 --- a/image/imgLoader.cpp +++ b/image/imgLoader.cpp @@ -2192,6 +2192,18 @@ imgLoader::LoadImage(nsIURI* aURI, request->SetCacheEntry(entry); if (mCacheTracker) { + if (MOZ_UNLIKELY(!entry->GetExpirationState()->IsTracked())) { + bool inCache = false; + RefPtr 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); } }