зеркало из https://github.com/mozilla/pjs.git
Bug 355222: don't attempt to close "blank" windows if the opener window is also closed, r=biesi, sr=darin
This commit is contained in:
Родитель
d709efa567
Коммит
eab491d35f
|
@ -2218,7 +2218,8 @@ nsresult nsExternalAppHandler::MaybeCloseWindow()
|
||||||
nsCOMPtr<nsIDOMWindowInternal> opener;
|
nsCOMPtr<nsIDOMWindowInternal> opener;
|
||||||
internalWindow->GetOpener(getter_AddRefs(opener));
|
internalWindow->GetOpener(getter_AddRefs(opener));
|
||||||
|
|
||||||
if (opener) {
|
PRBool isClosed;
|
||||||
|
if (opener && NS_SUCCEEDED(opener->GetClosed(&isClosed)) && !isClosed) {
|
||||||
mWindowContext = do_GetInterface(opener);
|
mWindowContext = do_GetInterface(opener);
|
||||||
|
|
||||||
// Now close the old window. Do it on a timer so that we don't run
|
// Now close the old window. Do it on a timer so that we don't run
|
||||||
|
|
Загрузка…
Ссылка в новой задаче