Bug 1413448 - Fix about:telemetry "no data available" overlay in the Browser Hangs section. r=chutten
authorJeremy Lempereur <jeremy.lempereur@gmail.com>
Sun, 31 Dec 2017 21:18:29 +0100
changeset 397613 b3af16adba66d058fddf57e35f5fd91728b7c8e1
parent 397612 19c8ceb894b82584a8d6e18307a8c28db721ca47
child 397614 d4e1ce4601357779d5ca1fa78e4c644b74ca7d46
push id57461
push userchutten@mozilla.com
push dateWed, 03 Jan 2018 16:42:50 +0000
treeherderautoland@d4e1ce460135 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschutten
bugs1413448
milestone59.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 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