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 110464 8d1b4a1f42ea4af4bf3d1bd11fbb34284b1d3a91
parent 110463 2d10007609f1bcc9b8250aaebafe6997d01ed062
child 110465 76dcbb473416a298551654a23f9e0efbbf71c034
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersnjn
bugs801498, 798040
milestone19.0a1
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)
 {