Bug 1689923 - Handle composition certificate exceptions. r=frg

This commit is contained in:
Ian Neal 2021-01-31 21:41:05 +00:00
Родитель 9afda2b9c1
Коммит a23ed5a901
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1466,6 +1466,8 @@ function ComposeLoad()
if (gLogComposePerformance)
sMsgComposeService.TimeStamp("Start initializing the compose window (ComposeLoad)", false);
msgWindow.notificationCallbacks = new nsMsgBadCertHandler();
try {
SetupCommandUpdateHandlers();
// This will do migration, or create a new account if we need to.
@ -1521,8 +1523,10 @@ function ComposeUnload()
gMsgCompose.UnregisterStateListener(stateListener);
if (gAutoSaveTimeout)
clearTimeout(gAutoSaveTimeout);
if (msgWindow)
if (msgWindow) {
msgWindow.closeWindow();
msgWindow.notificationCallbacks = null;
}
ReleaseGlobalVariables();
}