Partial fix for bug 312563: avoid crashing because of recursive updates caused by the code that attempts to notify plugins (via a paint) when their widget is removed from the hierarchy. r=mento.

This commit is contained in:
smfr%smfr.org 2005-10-17 03:17:06 +00:00
Родитель 114e31df32
Коммит f404b9c90f
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -1095,6 +1095,7 @@ NS_IMETHODIMP nsChildView::EndDrawPlugin()
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
void nsChildView::RemovedFromWindow() void nsChildView::RemovedFromWindow()
{ {
if (!mInWindow) return;
mInWindow = PR_FALSE; mInWindow = PR_FALSE;
if (mPluginPort && !mDestroyCalled) if (mPluginPort && !mDestroyCalled)
@ -1110,6 +1111,7 @@ void nsChildView::RemovedFromWindow()
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
void nsChildView::AddedToWindow() void nsChildView::AddedToWindow()
{ {
if (mInWindow) return;
mInWindow = PR_TRUE; mInWindow = PR_TRUE;
if (mPluginPort) if (mPluginPort)