mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 574312 - fix assertion, r=davidb, a=davidb
This commit is contained in:
parent
ba83452383
commit
ffa99b56bf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user