Bug 1506029 - Fix the way tracking of messages that have a large number of referents. r=njn

Differential Revision: https://phabricator.services.mozilla.com/D11440

--HG--
extra : moz-landing-system : lando
This commit is contained in:
shawn.huang 2018-11-12 01:51:30 +00:00
parent 0ef0024e3e
commit 36515cbbba

View File

@ -1110,7 +1110,7 @@ MessageManagerReporter::CountReferents(nsFrameMessageManager* aMessageManager,
// Keep track of messages that have a suspiciously large
// number of referents (symptom of leak).
if (currentCount == MessageManagerReporter::kSuspectReferentCount) {
if (currentCount >= MessageManagerReporter::kSuspectReferentCount) {
aReferentCount->mSuspectMessages.AppendElement(key);
}