opnsense-ports/www/firefox/files/patch-bug991253
Franco Fichtner 85d066a61f */*: sync with upstream
Taken from: HardenedBSD
2018-09-03 02:25:18 +02:00

17 lines
643 B
Text

--- extensions/spellcheck/hunspell/glue/mozHunspell.cpp~
+++ extensions/spellcheck/hunspell/glue/mozHunspell.cpp
@@ -336,6 +336,14 @@ mozHunspell::LoadDictionaryList(bool aNotifyChildProcesses)
}
}
+ // load system hunspell dictionaries
+ nsCOMPtr<nsIFile> hunDir;
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
+ true, getter_AddRefs(hunDir));
+ if (hunDir) {
+ LoadDictionariesFromDir(hunDir);
+ }
+
// find dictionaries from restartless extensions
for (int32_t i = 0; i < mDynamicDirectories.Count(); i++) {
LoadDictionariesFromDir(mDynamicDirectories[i]);