diff --git a/dom/events/DOMEventTargetHelper.cpp b/dom/events/DOMEventTargetHelper.cpp index ffec574dc60f..3f9e35333683 100644 --- a/dom/events/DOMEventTargetHelper.cpp +++ b/dom/events/DOMEventTargetHelper.cpp @@ -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 {