mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Backed out changeset fe98d700bb64 (bug 1313326)
This commit is contained in:
parent
b84bccbd94
commit
b76fa6923b
@ -314,8 +314,6 @@ var PingPicker = {
|
||||
.addEventListener("change", () => displayPingData(gPingData));
|
||||
document.getElementById("keyed-histograms-processes")
|
||||
.addEventListener("change", () => displayPingData(gPingData));
|
||||
document.getElementById("events-processes")
|
||||
.addEventListener("change", () => displayPingData(gPingData));
|
||||
},
|
||||
|
||||
onPingSourceChanged() {
|
||||
@ -1736,16 +1734,7 @@ var Events = {
|
||||
return;
|
||||
}
|
||||
|
||||
let processesSelect = document.getElementById("events-processes");
|
||||
let selectedProcess = processesSelect.selectedOptions.item(0).getAttribute("value");
|
||||
|
||||
if (!aPayload.processes ||
|
||||
!selectedProcess ||
|
||||
!(selectedProcess in aPayload.processes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
let events = aPayload.processes[selectedProcess].events;
|
||||
const events = aPayload.processes.parent.events;
|
||||
const hasData = events && Object.keys(events).length > 0;
|
||||
setHasData("events-section", hasData);
|
||||
if (!hasData) {
|
||||
@ -2093,7 +2082,6 @@ function displayPingData(ping, updatePayloadList = false) {
|
||||
renderProcessList(ping, document.getElementById("keyed-scalars-processes"));
|
||||
renderProcessList(ping, document.getElementById("histograms-processes"));
|
||||
renderProcessList(ping, document.getElementById("keyed-histograms-processes"));
|
||||
renderProcessList(ping, document.getElementById("events-processes"));
|
||||
}
|
||||
|
||||
// Show general data.
|
||||
|
@ -191,9 +191,6 @@
|
||||
<h1 class="section-name">&aboutTelemetry.eventsSection;</h1>
|
||||
<span class="toggle-caption">&aboutTelemetry.toggle;</span>
|
||||
<span class="empty-caption">&aboutTelemetry.emptySection;</span>
|
||||
<div class="processes-ui">
|
||||
<select id="events-processes" class="process-picker"></select>
|
||||
</div>
|
||||
<div id="events" class="data">
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user