mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
fix bug #8124, catch JS execption while setting the wrapColumn.
This commit is contained in:
parent
1401b07d3f
commit
91f9c5fa68
@ -69,7 +69,14 @@ function ComposeStartup()
|
||||
else
|
||||
{
|
||||
window.editorShell.SetEditorType("text");
|
||||
window.editorShell.wrapColumn = msgCompose.wrapLength;
|
||||
try
|
||||
{
|
||||
window.editorShell.wrapColumn = msgCompose.wrapLength;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
dump("### window.editorShell.wrapColumn exception text: " + e + " - failed\n");
|
||||
}
|
||||
dump("editor initialized in PLAIN TEXT mode\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user