Bug 1389165 - Fix the search for thread hangs in about:telemetry r=chutten

MozReview-Commit-ID: 8nYRcwEEBvD

--HG--
extra : rebase_source : 3dea7d1831bb3a004a1ae710d60b5baa6609dbfa
This commit is contained in:
flyingrub 2017-08-10 22:10:11 +02:00
Родитель 057cad84d0
Коммит 78866a5995
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1167,6 +1167,7 @@ var ThreadHangStats = {
let title = document.createElement("h2");
title.textContent = aThread.name;
div.appendChild(title);
div.id = title;
// Don't localize the histogram name, because the
// name is also used as the div element's ID
@ -1479,6 +1480,14 @@ var Search = {
keyedElements.push({key, datas});
}
this.filterKeyedElements(keyedElements, text);
} else if (selectedSection.id === "thread-hang-stats-section") {
let keyedElements = [];
let threads = selectedSection.children[0].children;
for (let key of threads) {
let datas = key.getElementsByClassName("histogram");
keyedElements.push({key, datas});
}
this.filterKeyedElements(keyedElements, text);
} else {
let tables = selectedSection.querySelectorAll("table");
for (let table of tables) {