Backout bug 378866, the patch doesn't handle all testcases :(
This commit is contained in:
@@ -3218,12 +3218,8 @@ nsGenericElement::doReplaceOrInsertBefore(PRBool aReplace,
|
||||
if (oldParent) {
|
||||
PRInt32 removeIndex = oldParent->IndexOf(newContent);
|
||||
|
||||
if (removeIndex < 0 ||
|
||||
!nsContentUtils::IsInSameAnonymousTree(container, newContent)) {
|
||||
// newContent is an anonymous child or it is in the anonymous content
|
||||
// and someone is trying to move it out from the anonymous content or
|
||||
// to the anonymous content of some other binding.
|
||||
// We can't deal with this, so just bail
|
||||
if (removeIndex < 0) {
|
||||
// newContent is anonymous. We can't deal with this, so just bail
|
||||
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user