Bug 355178 - Raise the maximum spell checked word length to 130 letters; r=smaug
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 18 Apr 2011 18:48:39 -0400
changeset 68504 97acf2219d5aeb9add8701784bb808c14d4bfc00
parent 68503 605f6d7309faad5d727a4897211b16e0554772c7
child 68505 a2814ef64e6d59c170e9236226831e712126cccd
push id76
push userbzbarsky@mozilla.com
push dateTue, 05 Jul 2011 17:00:57 +0000
treeherdermozilla-beta@d3a2732c35f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs355178
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 355178 - Raise the maximum spell checked word length to 130 letters; r=smaug
extensions/spellcheck/src/mozSpellChecker.cpp
--- a/extensions/spellcheck/src/mozSpellChecker.cpp
+++ b/extensions/spellcheck/src/mozSpellChecker.cpp
@@ -36,17 +36,19 @@
 
 #include "mozSpellChecker.h"
 #include "nsIServiceManager.h"
 #include "mozISpellI18NManager.h"
 #include "nsIStringEnumerator.h"
 #include "nsICategoryManager.h"
 #include "nsISupportsPrimitives.h"
 
-#define UNREASONABLE_WORD_LENGTH 64
+// The number 130 more or less comes out of thin air.
+// See https://bugzilla.mozilla.org/show_bug.cgi?id=355178#c78 for a pseudo-rationale.
+#define UNREASONABLE_WORD_LENGTH 130
 
 #define DEFAULT_SPELL_CHECKER "@mozilla.org/spellchecker/engine;1"
 
 NS_IMPL_CYCLE_COLLECTING_ADDREF(mozSpellChecker)
 NS_IMPL_CYCLE_COLLECTING_RELEASE(mozSpellChecker)
 
 NS_INTERFACE_MAP_BEGIN(mozSpellChecker)
   NS_INTERFACE_MAP_ENTRY(nsISpellChecker)