Bug 891904 - Un-schedule full spell check when checker is disabled. r=ehsan, a=akeybl
authorAryeh Gregor <ayg@aryeh.name>
Tue, 01 Oct 2013 09:42:35 +0300
changeset 155778 375edf59197af0784e0bd2fc8cb7fef91057872c
parent 155777 22472f19a48936aa403c4984145443f90c56acdc
child 155779 f72c378bc3e8ec71a2d97d3bad0d491a78683c23
push id4409
push userryanvm@gmail.com
push dateWed, 16 Oct 2013 14:46:45 +0000
treeherdermozilla-aurora@cc0306c09d59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, akeybl
bugs891904
milestone26.0a2
Bug 891904 - Un-schedule full spell check when checker is disabled. r=ehsan, a=akeybl
extensions/spellcheck/src/mozInlineSpellChecker.cpp
--- a/extensions/spellcheck/src/mozInlineSpellChecker.cpp
+++ b/extensions/spellcheck/src/mozInlineSpellChecker.cpp
@@ -621,16 +621,17 @@ nsresult mozInlineSpellChecker::Cleanup(
   }
   if (mNumPendingSpellChecks > 0) {
     // If mNumPendingSpellChecks is still > 0 at this point, the remainder is
     // pending scheduled spell checks.
     ChangeNumPendingSpellChecks(-mNumPendingSpellChecks, editor);
   }
 
   mEditor = nullptr;
+  mFullSpellCheckScheduled = false;
 
   return rv;
 }
 
 // mozInlineSpellChecker::CanEnableInlineSpellChecking
 //
 //    This function can be called to see if it seems likely that we can enable
 //    spellchecking before actually creating the InlineSpellChecking objects.