mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1088637 - check we get the right transition event, r=Enn
This commit is contained in:
parent
2481c87114
commit
80e8233e2d
@ -360,6 +360,13 @@ NS_IMETHODIMP nsXULPopupShownEvent::Run()
|
||||
NS_IMETHODIMP nsXULPopupShownEvent::HandleEvent(nsIDOMEvent* aEvent)
|
||||
{
|
||||
nsMenuPopupFrame* popup = do_QueryFrame(mPopup->GetPrimaryFrame());
|
||||
nsCOMPtr<nsIDOMEventTarget> eventTarget;
|
||||
aEvent->GetTarget(getter_AddRefs(eventTarget));
|
||||
// Ignore events not targeted at the popup itself (ie targeted at
|
||||
// descendants):
|
||||
if (!SameCOMIdentity(mPopup, eventTarget)) {
|
||||
return NS_OK;
|
||||
}
|
||||
if (popup) {
|
||||
// ResetPopupShownDispatcher will delete the reference to this, so keep
|
||||
// another one until Run is finished.
|
||||
|
Loading…
Reference in New Issue
Block a user