Bug 764862 - Select all | Copy, on the about: page (xhtml) does not paste correctly. r=Neil a=Callek
authorEdmund Wong <ewong@pw-wspx.org>
Sun, 17 Jun 2012 09:49:03 +0800
changeset 11337 c23fbddb47f42d6c1f34f9383f226a2797ebb5ad
parent 11336 d977cf0ce73bdb9300271db56930b311267eea7e
child 11338 3d0360cd72e0e29bb1174a987cf187a7fd0401f7
push id621
push userewong@pw-wspx.org
push dateThu, 05 Jul 2012 08:17:52 +0000
treeherdercomm-aurora@c23fbddb47f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil, Callek
bugs764862
Bug 764862 - Select all | Copy, on the about: page (xhtml) does not paste correctly. r=Neil a=Callek
suite/common/about.xhtml
--- a/suite/common/about.xhtml
+++ b/suite/common/about.xhtml
@@ -60,31 +60,36 @@
                                  .version;
 
       var version = document.getElementById("version");
 
       version.appendChild(document.createTextNode("&about.version; " + versionNum));
 
       // append user agent
       var ua = navigator.userAgent;
+      var list = document.getElementById("aboutPageList");
       if (ua) {
-        var list = document.getElementById("aboutPageList");
         var listItem = list.appendChild(document.createElement("li"));
         listItem.appendChild(document.createTextNode("&about.userAgent;"));
         listItem.appendChild(document.createTextNode(ua));
+        // append "\n    " to the aboutPageList children as a workaround
+        // for bug 319141.
+        list.appendChild(document.createTextNode("\n    "));
       }
 
       var buildId = Components.classes["@mozilla.org/xre/app-info;1"]
                                  .getService(Components.interfaces.nsIXULAppInfo)
                                  .appBuildID;
       if (buildId) {
-        var list = document.getElementById("aboutPageList");
         var listItem = list.appendChild(document.createElement("li"));
         listItem.appendChild(document.createTextNode("&about.buildIdentifier;"));
         listItem.appendChild(document.createTextNode(buildId));
+        // append "\n    " to the aboutPageList children as a workaround
+        // for bug 319141.
+        list.appendChild(document.createTextNode("\n    "));
       }
 
       // Determine and display current channel.
       try {
         var updateChannel =
             Components.classes["@mozilla.org/preferences-service;1"]
                       .getService(Components.interfaces.nsIPrefService)
                       .getDefaultBranch("")