More graceful handling of the orphaned window case.

This commit is contained in:
vidur%netscape.com 1999-06-15 03:25:41 +00:00
Родитель 4ef0ae057a
Коммит 4864fdaa6a
1 изменённых файлов: 9 добавлений и 0 удалений

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

@ -680,6 +680,9 @@ GlobalWindowImpl::GetStatus(nsString& aStatus)
aStatus = status;
NS_RELEASE(mBrowser);
}
else {
aStatus.Truncate();
}
return NS_OK;
}
@ -870,6 +873,9 @@ GlobalWindowImpl::GetScreenX(PRInt32* aScreenX)
*aScreenX = r.x;
NS_RELEASE(mBrowser);
}
else {
*aScreenX = nsnull;
}
return NS_OK;
}
@ -899,6 +905,9 @@ GlobalWindowImpl::GetScreenY(PRInt32* aScreenY)
*aScreenY = r.y;
NS_RELEASE(mBrowser);
}
else {
*aScreenY = nsnull;
}
return NS_OK;
}