summaryrefslogtreecommitdiff
path: root/www/firefox-esr/files/patch-bug991253
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-02-27 14:42:51 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-02-27 14:42:51 +0000
commitc308de0164ec299c9914722e02f9e6176f6c5b89 (patch)
tree87818ee8a7843c06fbfd36d7cfd6ceb05961d08b /www/firefox-esr/files/patch-bug991253
parentgraphics/simage: add LICENSE (diff)
- Update Firefox to 36.0
- Update Firefox ESR to 31.5.0 - Update Thunderbird to 31.5.0 - Update libxul to 31.5.0 - Check if NS_NewNativeLocalFile() succeeds before using [1] - Remove DTRACE and GIO descriptions after r377838 and r314893 - bsd.gecko.mk: Prune conditionals for files removed 4 months ago Changes: https://www.mozilla.org/firefox/36.0/releasenotes/ Obtained from: PkgSrc [1] MFH: 2015Q1 X-MFH-With: r377953, r378253, r379485, r378529 Security: https://vuxml.freebsd.org/freebsd/99029172-8253-407d-9d8b-2cfeab9abf81.html
Notes
Notes: svn path=/head/; revision=380090
Diffstat (limited to 'www/firefox-esr/files/patch-bug991253')
-rw-r--r--www/firefox-esr/files/patch-bug99125310
1 files changed, 6 insertions, 4 deletions
diff --git a/www/firefox-esr/files/patch-bug991253 b/www/firefox-esr/files/patch-bug991253
index 161feb2ca7b5..73d71610ab03 100644
--- a/www/firefox-esr/files/patch-bug991253
+++ b/www/firefox-esr/files/patch-bug991253
@@ -1,14 +1,16 @@
--- extensions/spellcheck/hunspell/src/mozHunspell.cpp~
+++ extensions/spellcheck/hunspell/src/mozHunspell.cpp
-@@ -400,6 +400,12 @@ mozHunspell::LoadDictionaryList()
+@@ -400,6 +400,14 @@ mozHunspell::LoadDictionaryList(bool aNo
}
}
+ // load system hunspell dictionaries
-+ nsIFile* hunDir;
++ nsCOMPtr<nsIFile> hunDir;
+ NS_NewNativeLocalFile(NS_LITERAL_CSTRING("%%LOCALBASE%%/share/hunspell"),
-+ true, &hunDir);
-+ LoadDictionariesFromDir(hunDir);
++ true, getter_AddRefs(hunDir));
++ if (hunDir) {
++ LoadDictionariesFromDir(hunDir);
++ }
+
// find dictionaries from extensions requiring restart
nsCOMPtr<nsISimpleEnumerator> dictDirs;