Fix crash in message composer because of stranded Insert Character dialog, b=117791, r=duccaroz, sr=dveditz

This commit is contained in:
cmanske%netscape.com 2002-02-07 23:46:55 +00:00
Родитель 431edd5a92
Коммит f5190f99e4
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -191,8 +191,9 @@ var gComposeRecyclingListener = {
document.getElementById("format_auto").setAttribute("checked", "true");
document.getElementById("priority_normal").setAttribute("checked", "true");
//Reset editor attributes
//Reset editor
EditorResetFontAndColorAttributes();
EditorCleanup();
//Release the nsIMsgComposeParams object
if (window.arguments && window.arguments[0])
@ -1424,6 +1425,9 @@ function ComposeLoad()
function ComposeUnload()
{
dump("\nComposeUnload from XUL\n");
EditorCleanup();
RemoveMessageComposeOfflineObserver();
RemoveDirectoryServerObserver(null);
if (gCurrentIdentity)

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

@ -52,6 +52,7 @@
onunload="ComposeUnload()"
onload="ComposeLoad()"
onclose="return DoCommandClose()"
onfocus="EditorOnFocus()"
title="&msgComposeWindow.title;"
windowtype="msgcompose"
width="640" height="480"