Revert "Issue #21 - Remove use counters telemetry"

This reverts commit 8ca9db6b65.
This commit is contained in:
roytam1 2022-04-27 16:25:00 +08:00
commit 92a1cc3139
45 changed files with 1128 additions and 36 deletions

View file

@ -775,6 +775,16 @@ nsBulletFrame::Notify(imgIRequest *aRequest, int32_t aType, const nsIntRect* aDa
InvalidateFrame();
}
if (aType == imgINotificationObserver::DECODE_COMPLETE) {
if (nsIDocument* parent = GetOurCurrentDoc()) {
nsCOMPtr<imgIContainer> container;
aRequest->GetImage(getter_AddRefs(container));
if (container) {
container->PropagateUseCounters(parent);
}
}
}
return NS_OK;
}