$OpenBSD: patch-extensions_spellcheck_hunspell_src_mozHunspell_cpp,v 1.13 2013/12/12 19:53:19 landry Exp $
--- extensions/spellcheck/hunspell/src/mozHunspell.cpp.orig	Tue Oct 29 07:04:36 2013
+++ extensions/spellcheck/hunspell/src/mozHunspell.cpp	Fri Nov  1 10:21:40 2013
@@ -426,6 +426,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,
