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:
Karl Tomlinson 2012-02-14 09:19:50 +13:00
parent 43645f0229
commit 25a53e61ab

View File

@ -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();
}
}