Fix 77206, stop reentrant events from overriding listener state flags, sr:jst, r:pollmann, a:dbaron

This commit is contained in:
joki%netscape.com 2001-06-20 06:12:19 +00:00
Родитель 3fdc9e89e6
Коммит 5bf89274a5
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1536,6 +1536,11 @@ nsEventStateManager::PostHandleEvent(nsIPresContext* aPresContext,
case NS_MOUSE_RIGHT_BUTTON_UP:
{
SetContentState(nsnull, NS_EVENT_STATE_ACTIVE);
if (!mCurrentTarget) {
nsIFrame* targ;
GetEventTarget(&targ);
if (!targ) return NS_ERROR_FAILURE;
}
ret = CheckForAndDispatchClick(aPresContext, (nsMouseEvent*)aEvent, aStatus);
nsCOMPtr<nsIPresShell> shell;
nsresult rv = aPresContext->GetShell(getter_AddRefs(shell));