mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
b=724967 update mWidget before calling CaptureRollupEvents to handle rollup during the call r=enndeakin
--HG-- extra : rebase_source : 47e0d5e43884c3722a3517d1e631c790e95101ec
This commit is contained in:
parent
391a3d76ce
commit
263607029d
@ -1618,10 +1618,9 @@ nsXULPopupManager::SetCaptureState(nsIContent* aOldPopup)
|
|||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
nsMenuPopupFrame* popup = item->Frame();
|
nsMenuPopupFrame* popup = item->Frame();
|
||||||
nsCOMPtr<nsIWidget> widget = popup->GetWidget();
|
mWidget = popup->GetWidget();
|
||||||
if (widget) {
|
if (mWidget) {
|
||||||
widget->CaptureRollupEvents(this, true, popup->ConsumeOutsideClicks());
|
mWidget->CaptureRollupEvents(this, true, popup->ConsumeOutsideClicks());
|
||||||
mWidget = widget;
|
|
||||||
popup->AttachedDismissalListener();
|
popup->AttachedDismissalListener();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user