mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
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:
parent
684dd182c1
commit
fef9c5376c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user