Bug 366814 - "Link in about: should be urlformatted localized pref" [p=Aqualon r=bsmedberg]
authorreed@reedloden.com
Mon, 13 Aug 2007 23:13:04 -0700
changeset 4618 d3b0cc18849f6812749b27916481a3b4a3ed2dde
parent 4617 95c0710864f6c3174c4b9a45cb330980e9745ff8
child 4619 b5052a2a26d0819a368f3bc173486bb9bd1db029
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs366814
milestone1.9a8pre
Bug 366814 - "Link in about: should be urlformatted localized pref" [p=Aqualon r=bsmedberg]
toolkit/content/about.xhtml
--- a/toolkit/content/about.xhtml
+++ b/toolkit/content/about.xhtml
@@ -55,17 +55,17 @@
 <head>
   <title>About:</title>
   <link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css"/>
 </head>
 
 <body dir="&locale.dir;">
 <div id="aboutPageContainer">
   <div id="aboutLogoContainer">
-    <a href="http://www.mozilla.org/">
+    <a id="vendorURL" href="http://www.mozilla.org/">
       <img src="about:logo" alt="&brandShortName;"/>
 #expand <p id="version">&about.version; __MOZ_APP_VERSION__</p>
     </a>
   </div>
 
   <ul id="aboutPageList">
     <li>&about.copy.beforeLink; <a href="about:credits">&about.copy.linkTitle;</a> &about.copy.afterLink;</li>
     <li>&about.license.beforeLink; <a href="about:license">&about.license.linkTitle;</a> &about.license.afterLink;</li>
@@ -74,18 +74,22 @@
     <script type="application/javascript">
       // get release notes URL from prefs
       try {
         var formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
                                   .getService(Components.interfaces.nsIURLFormatter);
         var releaseNotesURL = formatter.formatURLPref("app.releaseNotesURL");
         var relnotes = document.getElementById("releaseNotesURL");
         relnotes.setAttribute("href", releaseNotesURL);
+
+        var vendorURL = formatter.formatURLPref("app.vendorURL");
+        var vendor = document.getElementById("vendorURL");
+        vendor.setAttribute("href", vendorURL);
       }
-      catch (ex) { /* no release notes URL for you without bug 349985 being fixed */ }
+      catch (ex) { /* no release notes and vendor URL for you without bug 349985 being fixed */ }
 
       var ua = navigator.userAgent;
       if (ua) {
         var list = document.getElementById("aboutPageList");
         var listItem = list.appendChild(document.createElement("li"));
         listItem.appendChild(document.createTextNode("&about.buildIdentifier;"));
         listItem.appendChild(document.createTextNode(ua));
       }