From 5b2d0e0fe2ef1936bfe1c3c08780aadde3a287d6 Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Wed, 25 Nov 2009 16:59:02 -0800 Subject: [PATCH] Bug 530904 - tabs list style doesn't match fennec lists Make headers larger, adjust text margins, add nokia sans font family. --- services/sync/modules/util.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/sync/modules/util.js b/services/sync/modules/util.js index 71c8a3e3f0ac..3961956ad485 100644 --- a/services/sync/modules/util.js +++ b/services/sync/modules/util.js @@ -724,6 +724,17 @@ let Utils = { this.openDialog("ChangeSomething", "generic-change.xul"); }, + getIcon: function(iconUri, defaultIcon) { + try { + let iconURI = Utils.makeURI(iconUri); + return Svc.Favicon.getFaviconLinkForIcon(iconURI).spec; + } + catch(ex) {} + + // Just give the provided default icon or the system's default + return defaultIcon || Svc.Favicon.defaultFavicon.spec; + }, + getErrorString: function Utils_getErrorString(error, args) { try { return Str.errors.get(error, args || null); @@ -777,6 +788,7 @@ Svc.Prefs = new Preferences(PREFS_BRANCH); ["Crypto", "@labs.mozilla.com/Weave/Crypto;1", "IWeaveCrypto"], ["Directory", "@mozilla.org/file/directory_service;1", "nsIProperties"], ["Env", "@mozilla.org/process/environment;1", "nsIEnvironment"], + ["Favicon", "@mozilla.org/browser/favicon-service;1", "nsIFaviconService"], ["History", "@mozilla.org/browser/nav-history-service;1", "nsPIPlacesDatabase"], ["Idle", "@mozilla.org/widget/idleservice;1", "nsIIdleService"], ["IO", "@mozilla.org/network/io-service;1", "nsIIOService"],