зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
114e31df32
Коммит
f404b9c90f
|
@ -1095,6 +1095,7 @@ NS_IMETHODIMP nsChildView::EndDrawPlugin()
|
|||
//-------------------------------------------------------------------------
|
||||
void nsChildView::RemovedFromWindow()
|
||||
{
|
||||
if (!mInWindow) return;
|
||||
mInWindow = PR_FALSE;
|
||||
|
||||
if (mPluginPort && !mDestroyCalled)
|
||||
|
@ -1110,6 +1111,7 @@ void nsChildView::RemovedFromWindow()
|
|||
//-------------------------------------------------------------------------
|
||||
void nsChildView::AddedToWindow()
|
||||
{
|
||||
if (mInWindow) return;
|
||||
mInWindow = PR_TRUE;
|
||||
|
||||
if (mPluginPort)
|
||||
|
|
Загрузка…
Ссылка в новой задаче