зеркало из https://github.com/mozilla/gecko-dev.git
Bug 380716, Crash [@ nsContentUtils::ContentIsDescendantOf], r+sr=jst
This commit is contained in:
Родитель
6b77e511dd
Коммит
66b98ebaff
|
@ -1904,7 +1904,9 @@ nsGenericElement::doPreHandleEvent(nsIContent* aContent,
|
|||
(aVisitor.mEvent->originalTarget == aContent &&
|
||||
(aVisitor.mRelatedTargetIsInAnon = IsInAnonContent(relatedTarget)))) {
|
||||
nsIContent* nonAnon = FindFirstNonAnonContent(aContent);
|
||||
if (nonAnon) {
|
||||
nsIContent* nonAnonRelated = FindFirstNonAnonContent(relatedTarget);
|
||||
if (nonAnonRelated) {
|
||||
if (nonAnon == nonAnonRelated ||
|
||||
nsContentUtils::ContentIsDescendantOf(nonAnonRelated, nonAnon)) {
|
||||
aVisitor.mParentTarget = nsnull;
|
||||
|
@ -1915,6 +1917,8 @@ nsGenericElement::doPreHandleEvent(nsIContent* aContent,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIContent> parent = aContent->GetParent();
|
||||
if (isAnonForEvents) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче