b=331668. nsGenericElement::doInsertChildAt doesn't check aParent when setting mutation.mRelatedNode. Patch by Alex Vincent <ajvincent@gmail.com>. r+sr=peterv.

This commit is contained in:
sayrer@gmail.com
2006-06-07 01:23:26 +00:00
parent e97685fe86
commit dcb940a45d

View File

@@ -2261,7 +2261,7 @@ nsGenericElement::doInsertChildAt(nsIContent* aKid, PRUint32 aIndex,
nsContentUtils::HasMutationListeners(container,
NS_EVENT_BITS_MUTATION_NODEINSERTED)) {
nsMutationEvent mutation(PR_TRUE, NS_MUTATION_NODEINSERTED);
mutation.mRelatedNode = do_QueryInterface(aParent);
mutation.mRelatedNode = do_QueryInterface(container);
nsEventDispatcher::Dispatch(aKid, nsnull, &mutation);
}
}