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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user