Bug 361203 Suiterunner: More Information button doesn't work on Smart Browsing pane. r=KaiRo,sr=Neil

This commit is contained in:
bugzilla%standard8.demon.co.uk 2007-01-03 18:57:20 +00:00
parent 81d0f8bce8
commit be2984f89d
6 changed files with 13 additions and 14 deletions

View File

@ -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);

View File

@ -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()

View File

@ -52,9 +52,6 @@
onload="parent.initPanel('chrome://communicator/content/pref/pref-smart_browsing.xul');"
headertitle="&pref.smartBrowsing.title;">
<stringbundle id="bundle_region"
src="chrome://global-region/locale/region.properties"/>
<script type="application/x-javascript" src="chrome://communicator/content/pref/pref-smart_browsing.js"/>
<script type="application/x-javascript">

View File

@ -7,3 +7,4 @@ extensions.getMoreExtensionsURL=https://%LOCALE%.add-ons.mozilla.org/%LOCALE%/%A
extensions.getMoreThemesURL=https://%LOCALE%.add-ons.mozilla.org/%LOCALE%/%APP%/%VERSION%/themes/
spellchecker.dictionaries.download.url=https://%LOCALE%.add-ons.mozilla.org/%LOCALE%/%APP%/%VERSION%/dictionaries/
app.releaseNotesURL=http://www.mozilla.org/projects/seamonkey/releases/seamonkey%VERSION%/
keyword.moreInfoURL=http://www.mozilla.org/docs/end-user/internet-keywords.html

View File

@ -150,6 +150,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);

View File

@ -13,5 +13,4 @@ plugindoc_url=http://plugindoc.mozdev.org/
# brand.properties
#
getNewThemesURL=http://mozilla.org/themes/download/
smartBrowsingURL=http://www.mozilla.org/docs/end-user/internet-keywords.html