mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
SettingDocumentcharset should use FindMsgAppCore which will only create a new msg app core if we haven't done so yet...
This commit is contained in:
parent
e1975708cd
commit
d4b14fc31b
@ -20,16 +20,9 @@ function Exit()
|
||||
function CharacterSet(){}
|
||||
function SetDocumentCharacterSet(aCharset)
|
||||
{
|
||||
var appCore = XPAppCoresManager.Find("MsgAppCore");
|
||||
if (appCore == null) {
|
||||
dump("StartUp: Creating AppCore\n");
|
||||
appCore = new MsgAppCore();
|
||||
}
|
||||
var appCore = FindMsgAppCore();
|
||||
if (appCore != null) {
|
||||
dump(aCharset);dump("\n");
|
||||
appCore.Init("MsgAppCore");
|
||||
appCore.SetWindow(window);
|
||||
appCore.SetDocumentCharset(aCharset);
|
||||
} else {
|
||||
dump("MsgAppCore has not been created!\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user