Bug 304871. bug 304871. Another part of the fix for accessible DoAction() on HTML links, to allow new window creation. r=timeless, sr=jst

git-svn-id: svn://10.0.0.236/trunk@178284 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net 2005-08-19 19:27:43 +00:00
parent 7e48ea2970
commit b6c01458d5

View File

@ -252,19 +252,7 @@ NS_IMETHODIMP nsLinkableAccessible::DoAction(PRUint8 index)
// Action 0 (default action): Jump to link
if (index == eAction_Jump) {
if (mActionContent) {
nsCOMPtr<nsPresContext> presContext(GetPresContext());
if (presContext) {
nsMouseEvent clickEvent(PR_TRUE, NS_MOUSE_LEFT_CLICK, nsnull,
nsMouseEvent::eReal);
nsEventStatus eventStatus = nsEventStatus_eIgnore;
mActionContent->HandleDOMEvent(presContext,
&clickEvent,
nsnull,
NS_EVENT_FLAG_INIT,
&eventStatus);
return NS_OK;
}
return DoCommand(mActionContent);
}
}
return NS_ERROR_INVALID_ARG;