зеркало из https://github.com/mozilla/gecko-dev.git
Fix crash in message composer because of stranded Insert Character dialog, b=117791, r=duccaroz, sr=dveditz
This commit is contained in:
Родитель
431edd5a92
Коммит
f5190f99e4
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче