Bug 801498 - Fix about:compartments styling (broken by bug 798040). r=njn
authorJustin Lebar <justin.lebar@gmail.com>
Mon, 15 Oct 2012 16:50:51 -0400
changeset 110332 8d1b4a1f42ea4af4bf3d1bd11fbb34284b1d3a91
parent 110331 2d10007609f1bcc9b8250aaebafe6997d01ed062
child 110333 76dcbb473416a298551654a23f9e0efbbf71c034
push id23680
push useremorley@mozilla.com
push dateTue, 16 Oct 2012 08:09:24 +0000
treeherdermozilla-central@8f145599e4bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs801498, 798040
milestone19.0a1
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
Bug 801498 - Fix about:compartments styling (broken by bug 798040). r=njn
toolkit/components/aboutmemory/content/aboutMemory.js
--- a/toolkit/components/aboutmemory/content/aboutMemory.js
+++ b/toolkit/components/aboutmemory/content/aboutMemory.js
@@ -1568,39 +1568,37 @@ function updateAboutCompartments()
   // updateAboutCompartments() might be called more than once due to the
   // "child-memory-reporter-update" observer.
   let body = clearBody();
 
   let compartmentsByProcess = getCompartmentsByProcess();
   let ghostWindowsByProcess = getGhostWindowsByProcess();
 
   function handleProcess(aProcess) {
-    appendProcessAboutCompartmentsElements(body, aProcess,
+    let section = appendElement(body, 'div', 'section');
+    appendProcessAboutCompartmentsElements(section, aProcess,
                                            compartmentsByProcess[aProcess],
                                            ghostWindowsByProcess[aProcess]);
   }
 
   // Generate output for one process at a time.  Always start with the
   // Main process.
   handleProcess(gUnnamedProcessStr);
   for (let process in compartmentsByProcess) {
     if (process !== gUnnamedProcessStr) {
       handleProcess(process);
     }
   }
 
-  appendElement(body, "hr");
-
-  let div1 = appendElement(body, "div");
-  let a;
+  let section = appendElement(body, 'div', 'footer');
   if (gVerbose) {
-    let a = appendElementWithText(div1, "a", "option", "Less verbose");
+    let a = appendElementWithText(section, "a", "option", "Less verbose");
     a.href = "about:compartments";
   } else {
-    let a = appendElementWithText(div1, "a", "option", "More verbose");
+    let a = appendElementWithText(section, "a", "option", "More verbose");
     a.href = "about:compartments?verbose";
   }
 }
 
 //---------------------------------------------------------------------------
 
 function Compartment(aUnsafeName, aIsSystemCompartment)
 {