зеркало из https://github.com/mozilla/pjs.git
when the widget is being destroyed, check if it is the rollup widget and clear that out before it's too late.
r=saari/sr=hyatt/a=blizzard bug# 51603
This commit is contained in:
Родитель
ab07304516
Коммит
ae6b8659a4
|
@ -971,6 +971,14 @@ NS_METHOD nsWindow::Destroy()
|
||||||
if( mWindowState == nsWindowState_eLive && mParent)
|
if( mWindowState == nsWindowState_eLive && mParent)
|
||||||
nsBaseWidget::Destroy();
|
nsBaseWidget::Destroy();
|
||||||
|
|
||||||
|
// just to be safe. If we're going away and for some reason we're still
|
||||||
|
// the rollup widget, rollup and turn off capture.
|
||||||
|
if (this == gRollupWidget) {
|
||||||
|
if (gRollupListener)
|
||||||
|
gRollupListener->Rollup();
|
||||||
|
CaptureRollupEvents(nsnull, PR_FALSE, PR_TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
if( mWnd)
|
if( mWnd)
|
||||||
{
|
{
|
||||||
gHwndBeingDestroyed = (mHackDestroyWnd ? mHackDestroyWnd : mWnd);
|
gHwndBeingDestroyed = (mHackDestroyWnd ? mHackDestroyWnd : mWnd);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче