Bug 1413448 - Fix about:telemetry "no data available" overlay in the Browser Hangs section. r=chutten draft
authorJeremy Lempereur <jeremy.lempereur@gmail.com>
Sun, 31 Dec 2017 21:18:29 +0100
changeset 714901 671fa5553516ce4b82ae2893e041839c1af27ae9
parent 714849 e02699fd3129bef049f848e2f71189182eabe555
child 714902 35428e159c025b029dd2c7716d679ee1825d5b95
push id94054
push userbmo:jeremy.lempereur@gmail.com
push dateSun, 31 Dec 2017 20:21:46 +0000
reviewerschutten
bugs1413448
milestone59.0a1
Bug 1413448 - Fix about:telemetry "no data available" overlay in the Browser Hangs section. r=chutten The search feature in the Browser Hangs section does not work, and a message claiming "Sorry there's no data available in "Browser Hangs" hindered the view of the data. I added the chrome-hangs-section to the search blacklist. MozReview-Commit-ID: JJ4eb1fSOfg
toolkit/content/aboutTelemetry.js
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -1276,16 +1276,17 @@ var Histogram = {
 
 
 var Search = {
 
   HASH_SEARCH: "search=",
 
   // A list of ids of sections that do not support search.
   blacklist: [
+    "chrome-hangs-section",
     "raw-payload-section"
   ],
 
   // Pass if: all non-empty array items match (case-sensitive)
   isPassText(subject, filter) {
     for (let item of filter) {
       if (item.length && subject.indexOf(item) < 0) {
         return false; // mismatch and not a spurious space