зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2ac6d5be66
Коммит
ada4b8eee6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче