mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +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) {
|
||||
nsMenuPopupFrame* popup = item->Frame();
|
||||
nsCOMPtr<nsIWidget> widget = popup->GetWidget();
|
||||
if (widget) {
|
||||
widget->CaptureRollupEvents(this, true, popup->ConsumeOutsideClicks());
|
||||
mWidget = widget;
|
||||
mWidget = popup->GetWidget();
|
||||
if (mWidget) {
|
||||
mWidget->CaptureRollupEvents(this, true, popup->ConsumeOutsideClicks());
|
||||
popup->AttachedDismissalListener();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user