Bug 524201 - Move browserconfig.properties to a jar. r=gavin/pike/kev

This commit is contained in:
Saint Wesonga 2010-05-24 11:38:31 +02:00
parent c9e150d2ca
commit 32e9aa4b10
11 changed files with 7 additions and 28 deletions

View File

@ -181,7 +181,7 @@ pref("browser.shell.checkDefaultBrowser", true);
// 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session // 0 = blank, 1 = home (browser.startup.homepage), 2 = last visited page, 3 = resume previous browser session
// The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore // The behavior of option 3 is detailed at: http://wiki.mozilla.org/Session_Restore
pref("browser.startup.page", 1); pref("browser.startup.page", 1);
pref("browser.startup.homepage", "resource:/browserconfig.properties"); pref("browser.startup.homepage", "chrome://branding/locale/browserconfig.properties");
pref("browser.enable_automatic_image_resizing", true); pref("browser.enable_automatic_image_resizing", true);
pref("browser.chrome.site_icons", true); pref("browser.chrome.site_icons", true);

View File

@ -4775,7 +4775,7 @@ var gHomeButton = {
// use this if we can't find the pref // use this if we can't find the pref
if (!url) { if (!url) {
var SBS = Cc["@mozilla.org/intl/stringbundle;1"].getService(Ci.nsIStringBundleService); var SBS = Cc["@mozilla.org/intl/stringbundle;1"].getService(Ci.nsIStringBundleService);
var configBundle = SBS.createBundle("resource:/browserconfig.properties"); var configBundle = SBS.createBundle("chrome://branding/locale/browserconfig.properties");
url = configBundle.GetStringFromName(this.prefDomain); url = configBundle.GetStringFromName(this.prefDomain);
} }

View File

@ -45,11 +45,3 @@ include $(DEPTH)/config/autoconf.mk
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID) DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
libs::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(FINAL_TARGET)/browserconfig.properties
install::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(DESTDIR)$(mozappdir)/browserconfig.properties

View File

@ -5,3 +5,4 @@
# Nightly branding only exists in en-US # Nightly branding only exists in en-US
locale/branding/brand.dtd (en-US/brand.dtd) locale/branding/brand.dtd (en-US/brand.dtd)
* locale/branding/brand.properties (en-US/brand.properties) * locale/branding/brand.properties (en-US/brand.properties)
* locale/branding/browserconfig.properties (browserconfig.properties)

View File

@ -45,11 +45,3 @@ include $(DEPTH)/config/autoconf.mk
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID) DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
libs::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(FINAL_TARGET)/browserconfig.properties
install::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(DESTDIR)$(mozappdir)/browserconfig.properties

View File

@ -5,3 +5,4 @@
# Unofficial branding only exists in en-US # Unofficial branding only exists in en-US
locale/branding/brand.dtd (en-US/brand.dtd) locale/branding/brand.dtd (en-US/brand.dtd)
* locale/branding/brand.properties (en-US/brand.properties) * locale/branding/brand.properties (en-US/brand.properties)
* locale/branding/browserconfig.properties (browserconfig.properties)

View File

@ -22,7 +22,6 @@
@BINPATH@/chrome/@AB_CD@.jar @BINPATH@/chrome/@AB_CD@.jar
@BINPATH@/chrome/@AB_CD@.manifest @BINPATH@/chrome/@AB_CD@.manifest
@BINPATH@/@PREF_DIR@/firefox-l10n.js @BINPATH@/@PREF_DIR@/firefox-l10n.js
@BINPATH@/browserconfig.properties
@BINPATH@/searchplugins/* @BINPATH@/searchplugins/*
@BINPATH@/defaults/profile/bookmarks.html @BINPATH@/defaults/profile/bookmarks.html
@BINPATH@/defaults/profile/localstore.rdf @BINPATH@/defaults/profile/localstore.rdf

View File

@ -10,6 +10,7 @@
@DLL_PREFIX@xpistub@DLL_SUFFIX@ @DLL_PREFIX@xpistub@DLL_SUFFIX@
@DLL_PREFIX@zlib@DLL_SUFFIX@ @DLL_PREFIX@zlib@DLL_SUFFIX@
LICENSE LICENSE
browserconfig.properties
chrome.manifest chrome.manifest
chrome/US.jar chrome/US.jar
chrome/app-chrome.manifest chrome/app-chrome.manifest

View File

@ -45,11 +45,3 @@ include $(DEPTH)/config/autoconf.mk
DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID) DEFINES += -DAB_CD=$(AB_CD) -DMOZ_DISTRIBUTION_ID_UNQUOTED=$(MOZ_DISTRIBUTION_ID)
include $(topsrcdir)/config/rules.mk include $(topsrcdir)/config/rules.mk
libs::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(FINAL_TARGET)/browserconfig.properties
install::
@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
$(srcdir)/browserconfig.properties > $(DESTDIR)$(mozappdir)/browserconfig.properties

View File

@ -4,3 +4,4 @@
% locale branding @AB_CD@ %locale/branding/ % locale branding @AB_CD@ %locale/branding/
locale/branding/brand.dtd (%brand.dtd) locale/branding/brand.dtd (%brand.dtd)
* locale/branding/brand.properties (%brand.properties) * locale/branding/brand.properties (%brand.properties)
* locale/branding/browserconfig.properties (browserconfig.properties)

View File

@ -8,7 +8,7 @@ function userOnStart()
loadBundle('chrome://browser-region/locale/region.properties'); loadBundle('chrome://browser-region/locale/region.properties');
loadBundle('chrome://branding/content/searchconfig.properties'); loadBundle('chrome://branding/content/searchconfig.properties');
loadBundle('resource:/browserconfig.properties'); loadBundle('chrome://branding/locale/browserconfig.properties');
} }