$OpenBSD: patch-extensions_spellcheck_hunspell_src_mozHunspell_cpp,v 1.11 2012/10/10 20:56:14 landry Exp $
--- extensions/spellcheck/hunspell/src/mozHunspell.cpp.orig	Tue Aug 28 17:34:09 2012
+++ extensions/spellcheck/hunspell/src/mozHunspell.cpp	Sun Sep  2 11:40:20 2012
@@ -400,6 +400,14 @@ mozHunspell::LoadDictionaryList()
     }
   }
 
+  // try to load the generic mozilla/dictionaries
+  nsCOMPtr<nsIFile> mozillaDir;
+  rv = NS_NewNativeLocalFile(nsDependentCString(
+    "${LOCALBASE}/share/mozilla-dicts"), true, getter_AddRefs(mozillaDir));
+  if (mozillaDir && NS_SUCCEEDED(rv)) {
+    LoadDictionariesFromDir(mozillaDir);
+  }
+
   // find dictionaries from extensions requiring restart
   nsCOMPtr<nsISimpleEnumerator> dictDirs;
   rv = dirSvc->Get(DICTIONARY_SEARCH_DIRECTORY_LIST,
