Bug 574312 - fix assertion, r=davidb, a=davidb

This commit is contained in:
Alexander Surkov 2010-08-25 11:08:43 +09:00
parent ba83452383
commit ffa99b56bf

View File

@ -722,7 +722,8 @@ nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
}
if (!fireFocus) {
nsCOMPtr<nsINode> realFocusedNode = GetCurrentFocus();
nsIContent* realFocusedContent = realFocusedNode->AsElement();
nsIContent* realFocusedContent =
realFocusedNode->IsElement() ? realFocusedNode->AsElement() : nsnull;
nsIContent* containerContent = targetContent;
while (containerContent) {
nsCOMPtr<nsIDOMXULPopupElement> popup = do_QueryInterface(containerContent);