diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index 5e7bde95716..41af9689fbc 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -140,6 +140,7 @@ nsEventStateManager::PostHandleEvent(nsIPresContext& aPresContext, case NS_MOUSE_LEFT_BUTTON_UP: case NS_MOUSE_MIDDLE_BUTTON_UP: case NS_MOUSE_RIGHT_BUTTON_UP: + mCurrentTarget = aTargetFrame; ret = CheckForAndDispatchClick(aPresContext, (nsMouseEvent*)aEvent, aStatus); break; case NS_KEY_DOWN: diff --git a/layout/events/src/nsEventStateManager.cpp b/layout/events/src/nsEventStateManager.cpp index 5e7bde95716..41af9689fbc 100644 --- a/layout/events/src/nsEventStateManager.cpp +++ b/layout/events/src/nsEventStateManager.cpp @@ -140,6 +140,7 @@ nsEventStateManager::PostHandleEvent(nsIPresContext& aPresContext, case NS_MOUSE_LEFT_BUTTON_UP: case NS_MOUSE_MIDDLE_BUTTON_UP: case NS_MOUSE_RIGHT_BUTTON_UP: + mCurrentTarget = aTargetFrame; ret = CheckForAndDispatchClick(aPresContext, (nsMouseEvent*)aEvent, aStatus); break; case NS_KEY_DOWN: