Bug 1413448 - Fix about:telemetry "no data available" overlay in the Late Writes section. r=chutten draft
authorJeremy Lempereur <jeremy.lempereur@gmail.com>
Sun, 31 Dec 2017 21:20:59 +0100
changeset 714902 35428e159c025b029dd2c7716d679ee1825d5b95
parent 714901 671fa5553516ce4b82ae2893e041839c1af27ae9
child 744696 e2486edc015eea7fe3143644cbb3a5962df636da
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 Late Writes section. r=chutten The search feature in the Late Writes section does not work, and a message claiming "Sorry there's no data available in "Late Writes" hindered the view of the data. I added the late-writes-section to the search blacklist. MozReview-Commit-ID: 4Fqfh9zhzJZ
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: [
+    "late-writes-section",
     "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) {