mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
Bug 360865 Firefox crashes when selecting downloaded item with gok [@nsXULMenuitemAccessible::DoAction]
r=aaronleventhal
This commit is contained in:
parent
16334cf41d
commit
a059e8163c
@ -265,19 +265,6 @@ NS_IMETHODIMP nsXULMenuitemAccessible::DoAction(PRUint8 index)
|
||||
{
|
||||
if (index == eAction_Select) { // default action
|
||||
DoCommand();
|
||||
nsCOMPtr<nsIAccessible> parentAccessible(GetParent());
|
||||
if (parentAccessible) {
|
||||
PRUint32 role;
|
||||
parentAccessible->GetRole(&role);
|
||||
if (role == ROLE_LIST) {
|
||||
nsCOMPtr<nsIAccessible> buttonAccessible;
|
||||
parentAccessible->GetPreviousSibling(getter_AddRefs(buttonAccessible));
|
||||
PRUint32 state;
|
||||
buttonAccessible->GetFinalState(&state);
|
||||
if (state & STATE_PRESSED)
|
||||
buttonAccessible->DoAction(nsXULButtonAccessible::eAction_Click);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user