Bug 764862 - Select all | Copy, on the about: page (xhtml) does not paste correctly. r=Neil
authorEdmund Wong <ewong@pw-wspx.org>
Sun, 17 Jun 2012 09:49:03 +0800
changeset 10449 1347d4a8e05ecb180fa5e534a406cb4783deb199
parent 10448 f9fe2bc00bb0a7aa86ea2de659c9103e5a659895
child 10450 9f4f979d34f74bf898bd2a514695fa589421546e
push id7905
push userewong@pw-wspx.org
push dateSun, 17 Jun 2012 01:55:19 +0000
treeherdercomm-central@1347d4a8e05e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeil
bugs764862
Bug 764862 - Select all | Copy, on the about: page (xhtml) does not paste correctly. r=Neil
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("")