Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8

This commit is contained in:
Boris Zbarsky
2017-01-24 20:33:54 -05:00
parent 3488a7b38d
commit 56245bfc2c
7 changed files with 18 additions and 10 deletions

View File

@@ -321,8 +321,7 @@ NS_IMPL_CYCLE_COLLECTION_CAN_SKIP_BEGIN(XMLHttpRequestMainThread)
tmp->mListenerManager->MarkForCC();
}
if (!isBlack && tmp->PreservingWrapper()) {
// This marks the wrapper black.
tmp->GetWrapper();
tmp->MarkWrapperLive();
}
return true;
}