Bug #253054 --> Editor should use a chrome package known to exist (like itself) instead of

using "navigator" as the chrome package for asking the locale.

Fixes problems with the spell checker not working for new thunderbird profiles where there is no navigator package.

r=brade
This commit is contained in:
scott%scott-macgregor.org 2004-08-18 18:24:48 +00:00
parent f38d27c31d
commit 304c1345d0

View File

@ -178,7 +178,7 @@ nsEditorSpellCheck::InitSpellChecker(nsIEditor* aEditor, PRBool aEnableSelection
if (NS_SUCCEEDED(rv) && packageRegistry) {
nsCAutoString utf8DictName;
rv = packageRegistry->GetSelectedLocale(NS_LITERAL_CSTRING("navigator"),
rv = packageRegistry->GetSelectedLocale(NS_LITERAL_CSTRING("editor"),
utf8DictName);
CopyUTF8toUTF16(utf8DictName, dictName);
}