about:startup - hide the platform version/build fields from the duration table, because in Firefox the platform version changes only when the app version changes
authorDaniel Brooks <db48x@db48x.net>
Mon, 13 Sep 2010 09:51:33 -0400
changeset 58842 d9b63788b7081c7821a96124b04646e6a3766a15
parent 58841 0198aa4d41f738be6bd5152adaa5621ad104e036
child 58843 08581ffaba5b9e1d2ca56fad60a569b7f44e3386
push id17440
push userdb48x@yahoo.com
push dateWed, 08 Dec 2010 04:15:54 +0000
treeherdermozilla-central@a89f24bf1798 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone2.0b6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
about:startup - hide the platform version/build fields from the duration table, because in Firefox the platform version changes only when the app version changes
toolkit/content/aboutStartup.js
toolkit/content/aboutStartup.xhtml
--- a/toolkit/content/aboutStartup.js
+++ b/toolkit/content/aboutStartup.js
@@ -127,17 +127,17 @@ function go()
     // harmless
   }
 }
 
 go();
 
 function populateMeasurements()
 {
-  var query = db.createStatement("SELECT timestamp, launch, startup, appVersion, appBuild, platformVersion, platformBuild FROM duration");
+  var query = db.createStatement("SELECT timestamp, launch, startup, appVersion, appBuild, FROM duration");
   var lastver, lastbuild;
   query.executeAsync({
     handleResult: function(results)
     {
       let hasresults = false;
       let table = document.getElementById("duration-table");
       for (let row = results.getNextRow(); row; row = results.getNextRow())
       {
@@ -159,19 +159,17 @@ function populateMeasurements()
             s = row.getResultByName("startup");
         series[1].data.push(point(stamp, l, version, build));
         series[0].data.push(point(stamp, l + s, version, build));
         table.appendChild(tr(td(formatstamp(stamp)),
                              td(formatms(msFromµs(l))),
                              td(formatms(msFromµs(s))),
                              td(formatms(msFromµs((l + s)))),
                              td(version),
-                             td(build),
-                             td(row.getResultByName("platformVersion")),
-                             td(row.getResultByName("platformBuild"))));
+                             td(build)));
       }
       if (hasresults)
         $("#duration-table > .empty").hide();
     },
     handleError: function(error)
     {
       $("#duration-table").appendChild(tr(td("Error: "+ error.message +" ("+ error.result +")")));
     },
--- a/toolkit/content/aboutStartup.xhtml
+++ b/toolkit/content/aboutStartup.xhtml
@@ -41,19 +41,19 @@
 
     <div id="tables">
       <table id="duration-table">
         <tr>
           <th>&about.startup.timestamp;</th>
           <th>&about.startup.duration.launch;</th>
           <th>&about.startup.duration.startup;</th>
           <th>&about.startup.duration.ready;</th>
-          <th colspan="4">&about.startup.version;</th>
+          <th colspan="2">&about.startup.version;</th>
         </tr>
-        <tr class="empty"><td colspan="8"><i>&about.startup.noevents;</i></td></tr>
+        <tr class="empty"><td colspan="6"><i>&about.startup.noevents;</i></td></tr>
       </table>
       <table id="event-table">
         <tr><th>&about.startup.timestamp;</th><th>&about.startup.eventdesc;</th></tr>
         <tr class="empty"><td colspan="2"><i>&about.startup.noevents;</i></td></tr>
       </table>
     </div>
     <script type="application/javascript;version=1.8" src="chrome://global/content/aboutStartup.js"/>
   </body>