Bug 355221, All firefox windows closes suddenly if I load the page. r+sr=bz
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user