Bug 1026713 - Give DOMEventTargetHelper classes proper names in the CC log. r=smaug

This commit is contained in:
Andrew McCreight 2016-05-12 10:54:34 -07:00
parent cf1d25b060
commit 6c277c9ba0

View File

@ -31,7 +31,12 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(DOMEventTargetHelper)
if (tmp->mOwnerWindow && tmp->mOwnerWindow->GetExtantDoc()) {
tmp->mOwnerWindow->GetExtantDoc()->GetDocumentURI(uri);
}
snprintf_literal(name, "DOMEventTargetHelper %s",
nsXPCOMCycleCollectionParticipant* participant = nullptr;
CallQueryInterface(tmp, &participant);
snprintf_literal(name, "%s %s",
participant->ClassName(),
NS_ConvertUTF16toUTF8(uri).get());
cb.DescribeRefCountedNode(tmp->mRefCnt.get(), name);
} else {