зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
cc7cd89ee2
Коммит
31949afa88
|
@ -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()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче