diff --git a/dom/telephony/CallEvent.cpp b/dom/telephony/CallEvent.cpp index 187bd5b8ef5..781ce882f65 100644 --- a/dom/telephony/CallEvent.cpp +++ b/dom/telephony/CallEvent.cpp @@ -30,8 +30,11 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(CallEvent) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(CallEvent, nsDOMEvent) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE(tmp->mCall->ToISupports(), - TelephonyCall, "mCall") + // NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_PTR(tmp->mCall->ToISupports(), + // TelephonyCall, "mCall") + NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb, "mCall"); + cb.NoteNativeChild(tmp->mCall->ToISupports(), NS_CYCLE_COLLECTION_PARTICIPANT(TelephonyCall)); + NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(CallEvent, diff --git a/dom/telephony/TelephonyCall.cpp b/dom/telephony/TelephonyCall.cpp index 5223de0f5d6..eebbe5eab85 100644 --- a/dom/telephony/TelephonyCall.cpp +++ b/dom/telephony/TelephonyCall.cpp @@ -144,8 +144,10 @@ NS_IMPL_CYCLE_COLLECTION_CLASS(TelephonyCall) NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(TelephonyCall, nsDOMEventTargetHelper) - NS_IMPL_CYCLE_COLLECTION_TRAVERSE(tmp->mTelephony->ToISupports(), - Telephony, "mTelephony") + // NS_IMPL_CYCLE_COLLECTION_TRAVERSE_NATIVE_PTR(tmp->mTelephony->ToISupports(), + // Telephony, "mTelephony") + NS_CYCLE_COLLECTION_NOTE_EDGE_NAME(cb, "mTelephony"); + cb.NoteNativeChild(tmp->mTelephony->ToISupports(), NS_CYCLE_COLLECTION_PARTICIPANT(Telephony)); NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(TelephonyCall,