rem: var spellChecker = Components.classes["@mozilla.org/spellchecker/hunspell;1"] 
add: var spellChecker = Components.classes["@mozilla.org/spellchecker/engine;1"] 
context: function ExitSpellChecker(){  if (gSpellChecker)  {    try    {      var curLang = gSpellChecker.GetCurrentDictionary();      gSpellChecker.UninitSpellChecker();      if ("@mozilla.org/spellchecker;1" in Components.classes) {        var spellChecker = Components.classes["@mozilla.org/spellchecker/hunspell;1"]                                     .getService(Components.interfaces.mozISpellCheckingEngine);        spellChecker.dictionary = curLang;      }      // now check the document over again with the new dictionary      // if we have an inline spellchecker      if (("InlineSpellCheckerUI" in window.opener) &&          window.opener.InlineSpellCheckerUI.enabled)        window.opener.InlineSpellCheckerUI.mInlineSpellChecker.spellCheckRange(null);    }    finally    {      gSpellChecker = null;    }  }}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/23eb587c358b9bc1f98397052a1ea43ad72ed0ea/EdSpellCheck.js/buggy/editor/ui/dialogs/content/EdSpellCheck.js