Bug 1557231 - C-C part: Adapt to array changes of nsIInlineSpellChecker.ignoreWords(). rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Fri, 07 Jun 2019 00:08:04 +0200
changeset 35799 63d774f75722cf748d14da2e4fc1feb41c62c004
parent 35798 03aa53d80cf1d409c1bd97276396acd67fdb5003
child 35800 7ef46c2299364110c9370991d8c8176945c4c5f3
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1557231
Bug 1557231 - C-C part: Adapt to array changes of nsIInlineSpellChecker.ignoreWords(). rs=bustage-fix
mail/components/compose/content/MsgComposeCommands.js
suite/mailnews/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3770,17 +3770,17 @@ var spellCheckReadyObserver = {
     }
   },
 
   _addWords() {
     // At the time the speller finally got initialized, we may already be closing
     // the compose together with the speller, so we need to check if they
     // are still valid.
     if (gMsgCompose && gSpellChecker.enabled) {
-      gSpellChecker.mInlineSpellChecker.ignoreWords(this._ignoreWords, this._ignoreWords.length);
+      gSpellChecker.mInlineSpellChecker.ignoreWords(this._ignoreWords);
     }
     this._clearPendingWords();
   },
 
   _clearPendingWords() {
     this._ignoreWords.length = 0;
   },
 };
--- a/suite/mailnews/components/compose/content/MsgComposeCommands.js
+++ b/suite/mailnews/components/compose/content/MsgComposeCommands.js
@@ -2032,23 +2032,23 @@ function addRecipientsToIgnoreList(aAddr
 
     if (InlineSpellCheckerUI.mInlineSpellChecker.spellCheckPending)
     {
       // spellchecker is enabled, but we must wait for its init to complete
       Services.obs.addObserver(function observe(subject, topic, data) {
         if (subject == gMsgCompose.editor)
         {
           Services.obs.removeObserver(observe, topic);
-          InlineSpellCheckerUI.mInlineSpellChecker.ignoreWords(tokenizedNames, tokenizedNames.length);
+          InlineSpellCheckerUI.mInlineSpellChecker.ignoreWords(tokenizedNames);
         }
       }, "inlineSpellChecker-spellCheck-ended");
     }
     else
     {
-      InlineSpellCheckerUI.mInlineSpellChecker.ignoreWords(tokenizedNames, tokenizedNames.length);
+      InlineSpellCheckerUI.mInlineSpellChecker.ignoreWords(tokenizedNames);
     }
   }
 }
 
 function InitLanguageMenu()
 {
   var languageMenuList = document.getElementById("languageMenuList");
   if (!languageMenuList)