Turn 'adding a child where we already have a child' assertion into a warning for now. r=sicking. Bug 535466 tracks turning it back.

This commit is contained in:
Jesse Ruderman 2009-12-16 18:45:17 -08:00
parent 684dd182c1
commit fef9c5376c

View File

@ -594,8 +594,8 @@ nsSHEntry::AddChild(nsISHEntry * aChild, PRInt32 aOffset)
if (aOffset < mChildren.Count()) {
nsISHEntry* oldChild = mChildren.ObjectAt(aOffset);
if (oldChild && oldChild != aChild) {
NS_ERROR("Adding child where we already have a child? "
"This will likely misbehave");
NS_WARNING("Adding child where we already have a child? "
"This will likely misbehave");
oldChild->SetParent(nsnull);
}
}