Bug 480956 - HTMLDocument and some other dom objects traverse member variables even if the document is in 'nsCCUncollectableMarker::InGeneration' r+sr=peterv

This commit is contained in:
Olli Pettay
2009-03-03 14:14:13 +02:00
parent 19d620083e
commit ed1af7a823
8 changed files with 19 additions and 13 deletions

View File

@@ -4038,7 +4038,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsGenericElement)
nsIDocument* currentDoc = tmp->GetCurrentDoc();
if (currentDoc && nsCCUncollectableMarker::InGeneration(
currentDoc->GetMarkedCCGeneration())) {
return NS_OK;
return NS_SUCCESS_INTERRUPTED_TRAVERSE;
}
nsIDocument* ownerDoc = tmp->GetOwnerDoc();