зеркало из https://github.com/mozilla/gecko-dev.git
Seems pretty basic to me. Not sure what the heck this function was trying
to be before.
This commit is contained in:
Родитель
2ce85ee0fa
Коммит
05c0e4129e
|
@ -385,10 +385,9 @@ GlobalWindowImpl::GetOpener(nsIDOMWindow** aOpener)
|
|||
NS_IMETHODIMP
|
||||
GlobalWindowImpl::SetOpener(nsIDOMWindow* aOpener)
|
||||
{
|
||||
if (nsnull == aOpener) {
|
||||
NS_IF_RELEASE(mOpener);
|
||||
mOpener = nsnull;
|
||||
}
|
||||
NS_IF_RELEASE(mOpener);
|
||||
mOpener = aOpener;
|
||||
NS_IF_ADDREF(mOpener);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче