forked from pool/MozillaFirefox
4a13134b83
* Default search engine changed to Yahoo! for North America * Default search engine changed to Yandex for Belarusian, Kazakh, and Russian locales * Improved search bar (en-US only) * Firefox Hello real-time communication client * Easily switch themes/personas directly in the Customizing mode * Implementation of HTTP/2 (draft14) and ALPN * Disabled SSLv3 * MFSA 2014-83/CVE-2014-1587/CVE-2014-1588 Miscellaneous memory safety hazards * MFSA 2014-84/CVE-2014-1589 (bmo#1043787) XBL bindings accessible via improper CSS declarations * MFSA 2014-85/CVE-2014-1590 (bmo#1087633) XMLHttpRequest crashes with some input streams * MFSA 2014-86/CVE-2014-1591 (bmo#1069762) CSP leaks redirect data via violation reports * MFSA 2014-87/CVE-2014-1592 (bmo#1088635) Use-after-free during HTML5 parsing * MFSA 2014-88/CVE-2014-1593 (bmo#1085175) Buffer overflow while parsing media content * MFSA 2014-89/CVE-2014-1594 (bmo#1074280) Bad casting from the BasicThebesLayer to BasicContainerLayer - rebased patches - limit linker memory usage for %ix86 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=415
118 lines
5.1 KiB
Diff
118 lines
5.1 KiB
Diff
# HG changeset patch
|
|
# Parent 11ad195fb502ca7c1ba3c8836b2d91be56d64ce4
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
|
Add searchplugins to chrome packaging for proper localization
|
|
|
|
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
|
|
--- a/browser/app/profile/firefox.js
|
|
+++ b/browser/app/profile/firefox.js
|
|
@@ -388,16 +388,20 @@ pref("browser.helperApps.deleteTempFileO
|
|
#endif
|
|
|
|
// search engines URL
|
|
pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/firefox/search-engines/");
|
|
|
|
// pointer to the default engine name
|
|
pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties");
|
|
|
|
+// Tell the search service to load search plugins from the locale JAR
|
|
+pref("browser.search.loadFromJars", true);
|
|
+pref("browser.search.jarURIs", "chrome://browser/locale/searchplugins/");
|
|
+
|
|
// disable logging for the search service by default
|
|
pref("browser.search.log", false);
|
|
|
|
// Ordering of Search Engines in the Engine list.
|
|
pref("browser.search.order.1", "chrome://browser-region/locale/region.properties");
|
|
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties");
|
|
pref("browser.search.order.3", "chrome://browser-region/locale/region.properties");
|
|
|
|
diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in
|
|
--- a/browser/locales/Makefile.in
|
|
+++ b/browser/locales/Makefile.in
|
|
@@ -66,21 +66,23 @@ STUB_HOOK = $(NSINSTALL) -D '$(_ABS_DIST
|
|
cp ../installer/windows/l10ngen/stub.exe '$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe'; \
|
|
chmod 0755 '$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe'; \
|
|
$(NULL)
|
|
endif
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
|
|
SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/metrolist.txt))
|
|
else
|
|
-SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/list.txt)) ddg
|
|
+SEARCHPLUGINS_NAMES = $(shell cat \
|
|
+ $(firstword $(wildcard $(LOCALE_SRCDIR)/searchplugins/list.txt) \
|
|
+ @srcdir@/en-US/searchplugins/list.txt ) ) ddg
|
|
endif
|
|
SEARCHPLUGINS_PATH := $(FINAL_TARGET)/searchplugins
|
|
SEARCHPLUGINS := $(addsuffix .xml,$(SEARCHPLUGINS_NAMES))
|
|
-PP_TARGETS += SEARCHPLUGINS
|
|
+#PP_TARGETS += SEARCHPLUGINS
|
|
|
|
# Required for l10n.mk - defines a list of app sub dirs that should
|
|
# be included in langpack xpis.
|
|
ifdef MOZ_METRO
|
|
# metro build, include both app folders
|
|
DIST_SUBDIRS = browser metro
|
|
else
|
|
DIST_SUBDIRS = $(DIST_SUBDIR)
|
|
@@ -118,16 +120,39 @@ libs:: $(addprefix generic/profile/,$(PR
|
|
|
|
libs:: $(call MERGE_FILES,$(addprefix profile/chrome/,$(PROFILE_CHROME)))
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile/chrome
|
|
|
|
# metro build calls back here for search engine plugins
|
|
searchplugins: $(addprefix $(FINAL_TARGET)/searchplugins/,$(SEARCHPLUGINS))
|
|
.PHONY: searchplugins
|
|
|
|
+tmp-search.jar.mn::
|
|
+ printf "$(AB_CD).jar:" > $@
|
|
+ printf "$(foreach plugin,$(SEARCHPLUGINS), \n locale/browser/searchplugins/$(plugin) ($(plugin)))" >> $@
|
|
+ @echo >> $@
|
|
+
|
|
+searchplugins-jar:: $(SEARCHPLUGINS)
|
|
+ for SEARCHPLUGIN in $^; do \
|
|
+ $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) \
|
|
+ $$SEARCHPLUGIN > $$SEARCHPLUGIN-new) ; \
|
|
+ mv $$SEARCHPLUGIN-new $$SEARCHPLUGIN ; \
|
|
+ done
|
|
+
|
|
+searchplugins-jar:: tmp-search.jar.mn
|
|
+ $(call py_action,jar_maker,\
|
|
+ $(QUIET) -j $(FINAL_TARGET)/chrome \
|
|
+ -s $(topsrcdir)/$(relativesrcdir)/en-US/searchplugins \
|
|
+ -s $(LOCALE_SRCDIR)/searchplugins \
|
|
+ $(MAKE_JARS_FLAGS) tmp-search.jar.mn)
|
|
+
|
|
+libs:: searchplugins-jar
|
|
+
|
|
+GARBAGE += tmp-search.jar.mn
|
|
+
|
|
libs-%:
|
|
$(NSINSTALL) -D $(DIST)/install
|
|
@$(MAKE) -C ../../toolkit/locales libs-$*
|
|
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$*
|
|
ifdef MOZ_WEBAPP_RUNTIME
|
|
@$(MAKE) -C ../../webapprt/locales AB_CD=$* XPI_NAME=locale-$*
|
|
endif
|
|
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$*
|
|
diff --git a/browser/locales/jar.mn b/browser/locales/jar.mn
|
|
--- a/browser/locales/jar.mn
|
|
+++ b/browser/locales/jar.mn
|
|
@@ -139,14 +139,15 @@
|
|
locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties)
|
|
#endif
|
|
% locale browser-region @AB_CD@ %locale/browser-region/
|
|
locale/browser-region/region.properties (%chrome/browser-region/region.properties)
|
|
# the following files are browser-specific overrides
|
|
locale/browser/netError.dtd (%chrome/overrides/netError.dtd)
|
|
locale/browser/appstrings.properties (%chrome/overrides/appstrings.properties)
|
|
locale/browser/downloads/settingsChange.dtd (%chrome/overrides/settingsChange.dtd)
|
|
+ locale/browser/searchplugins/list.txt (%searchplugins/list.txt)
|
|
% override chrome://global/locale/netError.dtd chrome://browser/locale/netError.dtd
|
|
% override chrome://global/locale/appstrings.properties chrome://browser/locale/appstrings.properties
|
|
% override chrome://mozapps/locale/downloads/settingsChange.dtd chrome://browser/locale/downloads/settingsChange.dtd
|
|
% locale pdf.js @AB_CD@ %locale/pdfviewer/
|
|
locale/pdfviewer/viewer.properties (%pdfviewer/viewer.properties)
|
|
locale/pdfviewer/chrome.properties (%pdfviewer/chrome.properties)
|