Bug 355221, All firefox windows closes suddenly if I load the page. r+sr=bz

This commit is contained in:
Olli.Pettay@helsinki.fi
2006-10-03 17:52:22 +00:00
parent a37cb67053
commit ab8befb5bf
2 changed files with 12 additions and 12 deletions

View File

@@ -1857,12 +1857,12 @@ nsGenericElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
}
// Now recurse into our kids
PRUint32 i, n = GetChildCount();
for (i = 0; i < n; ++i) {
rv = mAttrsAndChildren.ChildAt(i)->BindToTree(aDocument, this,
aBindingParent,
aCompileEventHandlers);
PRUint32 i;
for (i = 0; i < GetChildCount(); ++i) {
// The child can remove itself from the parent in BindToTree.
nsCOMPtr<nsIContent> child = mAttrsAndChildren.ChildAt(i);
rv = child->BindToTree(aDocument, this, aBindingParent,
aCompileEventHandlers);
NS_ENSURE_SUCCESS(rv, rv);
}