зеркало из https://github.com/mozilla/gecko-dev.git
More graceful handling of the orphaned window case.
This commit is contained in:
Родитель
4ef0ae057a
Коммит
4864fdaa6a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче