mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 787493, be more strict with refChild handling, r=bz
This commit is contained in:
parent
87fb623851
commit
bea60843d2
@ -1575,6 +1575,10 @@ nsINode::ReplaceOrInsertBefore(bool aReplace, nsINode* aNewChild,
|
||||
if (nodeType == nsIDOMNode::DOCUMENT_FRAGMENT_NODE) {
|
||||
static_cast<nsGenericElement*>(aNewChild)->FireNodeRemovedForChildren();
|
||||
}
|
||||
// Verify that our aRefChild is still sensible
|
||||
if (aRefChild && aRefChild->GetNodeParent() != this) {
|
||||
return NS_ERROR_DOM_NOT_FOUND_ERR;
|
||||
}
|
||||
}
|
||||
|
||||
nsIDocument* doc = OwnerDoc();
|
||||
|
Loading…
Reference in New Issue
Block a user