Bug 851641. Ignore move/resize notifications for popups whose widget is hidden because this likely means they are notifications about our own move/resize requests. r=mats

This commit is contained in:
Timothy Nikkel 2013-04-28 15:27:25 -05:00
Родитель 2ac6d5be66
Коммит ada4b8eee6
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -341,6 +341,10 @@ nsMenuPopupFrame* GetPopupToMoveOrResize(nsIFrame* aFrame)
if (menuPopupFrame->PopupState() != ePopupOpenAndVisible) if (menuPopupFrame->PopupState() != ePopupOpenAndVisible)
return nullptr; return nullptr;
nsIWidget* widget = menuPopupFrame->GetWidget();
if (widget && !widget->IsVisible())
return nullptr;
return menuPopupFrame; return menuPopupFrame;
} }