Bug 360865 Firefox crashes when selecting downloaded item with gok [@nsXULMenuitemAccessible::DoAction]

r=aaronleventhal
This commit is contained in:
ginn.chen%sun.com 2006-12-01 03:46:18 +00:00
parent 16334cf41d
commit a059e8163c

View File

@ -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;
}