зеркало из https://github.com/mozilla/pjs.git
Bug 378866, r+sr=bz, a=sicking
This commit is contained in:
Родитель
d797e70e54
Коммит
175ef35f13
|
@ -3218,8 +3218,12 @@ nsGenericElement::doReplaceOrInsertBefore(PRBool aReplace,
|
|||
if (oldParent) {
|
||||
PRInt32 removeIndex = oldParent->IndexOf(newContent);
|
||||
|
||||
if (removeIndex < 0) {
|
||||
// newContent is anonymous. We can't deal with this, so just bail
|
||||
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
|
||||
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
|
||||
}
|
||||
|
||||
|
|
|
@ -85,6 +85,7 @@ _TEST_FILES = test_bug5141.html \
|
|||
test_bug372086.html \
|
||||
test_bug373181.xhtml \
|
||||
test_bug375314.html \
|
||||
test_bug378866.xhtml \
|
||||
test_bug382113.html \
|
||||
bug382113_object.html \
|
||||
test_CrossSiteXHR.html \
|
||||
|
|
Загрузка…
Ссылка в новой задаче