Bug 160942 JS error exception closing new message windows: sMsgComposeService is not defined. (Ev1-TB) p=Serge Gautherie <sgautherie.bz@free.fr>,r=mscott

This commit is contained in:
bugzilla%standard8.demon.co.uk 2007-04-13 17:52:41 +00:00
Родитель cc7cd89ee2
Коммит 31949afa88
1 изменённых файлов: 5 добавлений и 8 удалений

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

@ -309,6 +309,7 @@ var stateListener = {
// Notify the SendListener that Send has been aborted and Stopped // Notify the SendListener that Send has been aborted and Stopped
if (gMsgCompose) if (gMsgCompose)
gMsgCompose.onSendNotPerformed(null, Components.results.NS_ERROR_ABORT); gMsgCompose.onSendNotPerformed(null, Components.results.NS_ERROR_ABORT);
MsgComposeCloseWindow(true); MsgComposeCloseWindow(true);
} }
} }
@ -1478,10 +1479,7 @@ function WizCallback(state)
} }
else else
{ {
if (gMsgCompose) MsgComposeCloseWindow(false); // Don't try to recycle a bogus window
gMsgCompose.CloseWindow(false); //Don't try to recyle a bogus window
else
window.close();
// window.tryToClose=ComposeCanClose; // window.tryToClose=ComposeCanClose;
} }
} }
@ -1556,10 +1554,7 @@ function ComposeLoad()
else else
window.alert(errorMsg); window.alert(errorMsg);
if (gMsgCompose) MsgComposeCloseWindow(false); // Don't try to recycle a bogus window
gMsgCompose.CloseWindow(false); //Don't try to recycle a bogus window
else
window.close();
return; return;
} }
window.tryToClose=ComposeCanClose; window.tryToClose=ComposeCanClose;
@ -2564,6 +2559,8 @@ function MsgComposeCloseWindow(recycleIt)
{ {
if (gMsgCompose) if (gMsgCompose)
gMsgCompose.CloseWindow(recycleIt); gMsgCompose.CloseWindow(recycleIt);
else
window.close();
} }
function GetLastAttachDirectory() function GetLastAttachDirectory()