mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1026713 - Give DOMEventTargetHelper classes proper names in the CC log. r=smaug
This commit is contained in:
parent
cf1d25b060
commit
6c277c9ba0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user