Bug 404237, add null check when key is pressed quickly before menu opens, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@241550 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d653146e16
commit
263d31e079
@ -1520,8 +1520,10 @@ nsXULPopupManager::HandleKeyboardNavigation(PRUint32 aKeyCode)
|
||||
}
|
||||
else if NS_DIRECTION_IS_BLOCK(theDirection) {
|
||||
// Open the menu and select its first item.
|
||||
nsCOMPtr<nsIContent> content = currentMenu->GetContent();
|
||||
ShowMenu(content, PR_TRUE, PR_FALSE);
|
||||
if (currentMenu) {
|
||||
nsCOMPtr<nsIContent> content = currentMenu->GetContent();
|
||||
ShowMenu(content, PR_TRUE, PR_FALSE);
|
||||
}
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user