Bug 1489807 - Port bug 1489793: replace usage of XPCOM to create the spell checker object. r=jorgk DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 10 Sep 2018 21:28:56 +1200
changeset 33144 4bcb46410184d0ef4432b396528a2a8d59a23c4e
parent 33143 5237216b5de539afc782736f87772555478d6239
child 33145 f3343302b310a9a4a1a7b7084981e7932928010a
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersjorgk
bugs1489807, 1489793
Bug 1489807 - Port bug 1489793: replace usage of XPCOM to create the spell checker object. r=jorgk DONTBUILD
editor/ui/dialogs/content/EdSpellCheck.js
--- a/editor/ui/dialogs/content/EdSpellCheck.js
+++ b/editor/ui/dialogs/content/EdSpellCheck.js
@@ -18,17 +18,17 @@ function Startup()
   var editor = GetCurrentEditor();
   if (!editor)
   {
     window.close();
     return;
   }
 
   // Get the spellChecker shell
-  gSpellChecker = Cc['@mozilla.org/editor/editorspellchecker;1'].createInstance(Ci.nsIEditorSpellCheck);
+  gSpellChecker = Cu.createSpellChecker();
   if (!gSpellChecker)
   {
     dump("SpellChecker not found!!!\n");
     window.close();
     return;
   }
 
   // Start the spell checker module.