зеркало из https://github.com/mozilla/gecko-dev.git
Bug 304871. bug 304871. Another part of the fix for accessible DoAction() on HTML links, to allow new window creation. r=timeless, sr=jst
This commit is contained in:
Родитель
5e74f32ebd
Коммит
59ca2b6d72
|
@ -252,19 +252,7 @@ NS_IMETHODIMP nsLinkableAccessible::DoAction(PRUint8 index)
|
||||||
// Action 0 (default action): Jump to link
|
// Action 0 (default action): Jump to link
|
||||||
if (index == eAction_Jump) {
|
if (index == eAction_Jump) {
|
||||||
if (mActionContent) {
|
if (mActionContent) {
|
||||||
nsCOMPtr<nsPresContext> presContext(GetPresContext());
|
return DoCommand(mActionContent);
|
||||||
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 NS_ERROR_INVALID_ARG;
|
return NS_ERROR_INVALID_ARG;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче