Bug 1152331 - If we do not delete indices array, it gets picked up down the line and breaks some assumptions in aboutSupport.js. r=dvander, a=sledru
authorMilan Sreckovic <milan@mozilla.com>
Thu, 09 Apr 2015 10:44:17 -0400
changeset 263173 f29b348372d345279d726de6299a1b936bbc61f4
parent 263172 c2a34449bc998ec898685aec3546a3353c93976e
child 263174 083b17466720773c31a5bb32df0c61b2cf79c8d8
push id1963
push userpaolo.mozmail@amadzone.org
push dateSun, 10 May 2015 10:26:20 +0000
reviewersdvander, sledru
bugs1152331
milestone39.0a2
Bug 1152331 - If we do not delete indices array, it gets picked up down the line and breaks some assumptions in aboutSupport.js. r=dvander, a=sledru
toolkit/content/aboutSupport.js
--- a/toolkit/content/aboutSupport.js
+++ b/toolkit/content/aboutSupport.js
@@ -251,25 +251,26 @@ let snapshotFormatters = {
             if (a.index < b.index) return -1;
             if (a.index > b.index) return 1;
             return 0;});
         $.append($("graphics-failures-tbody"),
                  combined.map(function(val) {
                    return $.new("tr", [$.new("th", val.header, "column"),
                                        $.new("td", val.message)]);
                  }));
+        delete data.indices;
       } else {
         $.append($("graphics-failures-tbody"),
           [$.new("tr", [$.new("th", "LogFailure", "column"),
                         $.new("td", data.failures.map(function (val) {
                           return $.new("p", val);
                        }))])]);
       }
 
-	delete data.failures;
+      delete data.failures;
     }
 
     // graphics-tbody tbody
 
     let out = Object.create(data);
 
     if (apzInfo.length == 0)
       out.asyncPanZoom = "none";