зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1363828 - First attempt at making about:telemetry more exception r=chutten
safe We could also test ping.environment.addons before using it. MozReview-Commit-ID: 1z6NdLPTBqN --HG-- extra : rebase_source : c5ec4d189cf0d2d7bb67e335c06f678dd53d335d
This commit is contained in:
Родитель
48dc5abae1
Коммит
24fe5b3ab5
|
@ -107,7 +107,6 @@ function filterObject(obj, filterOut) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This turns a JSON object into a "flat" stringified form, separated into top-level sections.
|
||||
*
|
||||
|
@ -2084,6 +2083,14 @@ function displayPingData(ping, updatePayloadList = false) {
|
|||
let pre = document.getElementById("raw-ping-data");
|
||||
pre.textContent = JSON.stringify(gPingData, null, 2);
|
||||
|
||||
try {
|
||||
displayRichPingData(ping, updatePayloadList);
|
||||
} catch (err) {
|
||||
PingPicker._showRawPingData();
|
||||
}
|
||||
}
|
||||
|
||||
function displayRichPingData(ping, updatePayloadList) {
|
||||
// Update the structured data rendering.
|
||||
const keysHeader = bundle.GetStringFromName("keysHeader");
|
||||
const valuesHeader = bundle.GetStringFromName("valuesHeader");
|
||||
|
|
Загрузка…
Ссылка в новой задаче