mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
www/firefox: don't load system dictionaries after r472727
Bundled Hunspell may not be compatible. If users still want system dictionaries they can set spellchecker.dictionary_path in about:config.
This commit is contained in:
parent
1bfb541196
commit
57c6708383
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=485461
@ -539,8 +539,10 @@ gecko-post-patch:
|
||||
-e 's|share/mozilla/extensions|lib/xpi|g' \
|
||||
${MOZSRC}/xpcom/io/nsAppFileLocationProvider.cpp \
|
||||
${MOZSRC}/toolkit/xre/nsXREDirProvider.cpp
|
||||
.if ${MOZILLA_VER:R:R} < 61
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${MOZSRC}/extensions/spellcheck/hunspell/*/mozHunspell.cpp
|
||||
.endif
|
||||
|
||||
# handles mozilla pis scripts.
|
||||
gecko-moz-pis-patch:
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= firefox
|
||||
DISTVERSION= 63.0.3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= www ipv6
|
||||
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \
|
||||
|
@ -1,17 +0,0 @@
|
||||
--- 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]);
|
Loading…
Reference in New Issue
Block a user