Bug 734041 (part 1) - Trivially improve an assertion message to help diagnose a blank about:memory page. r=me.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 08 Mar 2012 04:36:43 -0800
changeset 88498 e986790701f3367602f5698743a2506ff8d85886
parent 88497 060cc6982c6dfd6fec3da8eeff40ff1317a3caab
child 88510 ff89d860986e517864464324e3e466d3871e4c78
push id6871
push usernnethercote@mozilla.com
push dateThu, 08 Mar 2012 12:38:38 +0000
treeherdermozilla-inbound@e986790701f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs734041
milestone13.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 734041 (part 1) - Trivially improve an assertion message to help diagnose a blank about:memory page. r=me.
toolkit/components/aboutmemory/content/aboutMemory.js
--- a/toolkit/components/aboutmemory/content/aboutMemory.js
+++ b/toolkit/components/aboutmemory/content/aboutMemory.js
@@ -119,17 +119,17 @@ function addChildObserversAndUpdate(aUpd
 
 function onLoad()
 {
   if (document.title === "about:memory") {
     onLoadAboutMemory();
   } else if (document.title === "about:compartments") {
     onLoadAboutCompartments();
   } else {
-    assert(false, "Unknown location");
+    assert(false, "Unknown location: " + document.title);
   }
 }
 
 function onUnload()
 {
   // We need to check if the observer has been added before removing; in some
   // circumstances (eg. reloading the page quickly) it might not have because
   // onLoadAbout{Memory,Compartments} might not fire.