Backout c1243d1fb401 (bug 751509) for turning test_aboutmemory.xul permaorange
authorEd Morley <emorley@mozilla.com>
Fri, 04 May 2012 19:14:15 +0100
changeset 93172 05d1ae4caf36dbaf6b8e723ab12750a0409fe5c4
parent 93171 860d97778e2147750f3c2457955c322790fa03b1
child 93173 341e99692944531fd7b7e1f8e4c1f88e117c1ba8
push id9017
push useremorley@mozilla.com
push dateFri, 04 May 2012 18:15:30 +0000
treeherdermozilla-inbound@05d1ae4caf36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs751509
milestone15.0a1
backs outc1243d1fb401b989f90fb462b4eac57b6601630b
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
Backout c1243d1fb401 (bug 751509) for turning test_aboutmemory.xul permaorange
toolkit/components/aboutmemory/content/aboutMemory.js
--- a/toolkit/components/aboutmemory/content/aboutMemory.js
+++ b/toolkit/components/aboutmemory/content/aboutMemory.js
@@ -1410,17 +1410,17 @@ OtherReport.prototype = {
   },
 
   isInvalid: function() {
     let n = this._amount;
     switch (this._units) {
       case UNITS_BYTES:
       case UNITS_COUNT:
       case UNITS_COUNT_CUMULATIVE: return n < 0;
-      case UNITS_PERCENTAGE:       return n < 0; /* percentages may be greater than 100% */
+      case UNITS_PERCENTAGE:       return !(0 <= n && n <= 10000);
       default:
         assert(false, "bad units in OtherReport.isInvalid");
     }
   }
 };
 
 OtherReport.compare = function(a, b) {
   return a._unsafePath < b._unsafePath ? -1 :