From be2984f89d646cc9615498fbeafede8d1cfafac3 Mon Sep 17 00:00:00 2001 From: "bugzilla%standard8.demon.co.uk" Date: Wed, 3 Jan 2007 18:57:20 +0000 Subject: [PATCH] Bug 361203 Suiterunner: More Information button doesn't work on Smart Browsing pane. r=KaiRo,sr=Neil --- suite/browser/browser-prefs.js | 1 + suite/common/pref/pref-smart_browsing.js | 20 +++++++++---------- suite/common/pref/pref-smart_browsing.xul | 3 --- .../en-US/chrome/branding/brand.properties | 1 + xpfe/bootstrap/browser-prefs.js | 1 + .../resources/locale/en-US/region.properties | 1 - 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/suite/browser/browser-prefs.js b/suite/browser/browser-prefs.js index a4271f64bca4..e57c94c87791 100644 --- a/suite/browser/browser-prefs.js +++ b/suite/browser/browser-prefs.js @@ -151,6 +151,7 @@ pref("browser.translation.serviceDomain", "chrome://navigator-region/locale/regi pref("browser.related.autoload", 1); // 0 = Always, 1 = After first use, 2 = Never pref("browser.related.provider", "http://www-rl.netscape.com/wtgn?"); pref("browser.related.disabledForDomains", ""); +pref("keyword.moreInfoURL", "chrome://branding/locale/brand.properties"); // Bookmarks prefs pref("browser.bookmarks.confirm_sorting", true); diff --git a/suite/common/pref/pref-smart_browsing.js b/suite/common/pref/pref-smart_browsing.js index 4820f9bb7177..17a75ab5cdd2 100644 --- a/suite/common/pref/pref-smart_browsing.js +++ b/suite/common/pref/pref-smart_browsing.js @@ -40,17 +40,17 @@ function moreInfo() { var browserURL = null; - var regionBundle = document.getElementById("bundle_region"); - var smartBrowsingURL = regionBundle.getString("smartBrowsingURL"); - if (smartBrowsingURL) { - try { - browserURL = parent.hPrefWindow.getPref("string", "browser.chromeURL"); - } catch(e) { - } - if (browserURL == null) - browserURL = "chrome://navigator/content/navigator.xul"; - window.openDialog( browserURL, "_blank", "chrome,all,dialog=no", smartBrowsingURL ); + try { + browserURL = parent.hPrefWindow.getPref("string", "browser.chromeURL"); + } catch(e) { } + if (browserURL == null) + browserURL = "chrome://navigator/content/navigator.xul"; + + var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"] + .getService(Components.interfaces.nsIURLFormatter); + window.openDialog(browserURL, "_blank", "chrome,all,dialog=no", + formatter.formatURLPref("keyword.moreInfoURL")); } function showACAdvanced() diff --git a/suite/common/pref/pref-smart_browsing.xul b/suite/common/pref/pref-smart_browsing.xul index e9dcf157fb0f..ad6a228e5538 100644 --- a/suite/common/pref/pref-smart_browsing.xul +++ b/suite/common/pref/pref-smart_browsing.xul @@ -52,9 +52,6 @@ onload="parent.initPanel('chrome://communicator/content/pref/pref-smart_browsing.xul');" headertitle="&pref.smartBrowsing.title;"> - -