зеркало из https://github.com/mozilla/pjs.git
reorder parent activation on destroy to fix stacked dialog focus regression. bug 122765 r=bryner,hyatt
This commit is contained in:
Родитель
447e04116c
Коммит
847c6d06f1
|
@ -325,6 +325,12 @@ NS_IMETHODIMP nsXULWindow::Destroy()
|
|||
if(!mWindow)
|
||||
return NS_OK;
|
||||
|
||||
#ifdef XP_PC
|
||||
/* must activate parent before unregistering, since unregistering
|
||||
affects the topmost window status, which activateparent uses. */
|
||||
ActivateParent();
|
||||
#endif
|
||||
|
||||
{
|
||||
/* unregister before setting mBeingDestroyed because -turbo code
|
||||
wants to be able to pose a dialog. */
|
||||
|
@ -360,10 +366,6 @@ NS_IMETHODIMP nsXULWindow::Destroy()
|
|||
if (parentWindow)
|
||||
parentWindow->RemoveChildWindow(this);
|
||||
|
||||
#ifdef XP_PC
|
||||
ActivateParent();
|
||||
#endif
|
||||
|
||||
// Anyone still using native menus should add themselves here.
|
||||
#if defined(XP_MAC) || defined(XP_MACOSX)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче