mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 1835508 - Fix about:webrtc section on raw candidates to work when Auto Refresh is on. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D180035
This commit is contained in:
parent
90e783dbb0
commit
cfaeb68f1a
@ -477,6 +477,11 @@ class ShowTab extends Control {
|
||||
await Promise.all(
|
||||
statReports.flatMap(report => [
|
||||
translateSection(report, "ice-stats", renderICEStats),
|
||||
translateSection(
|
||||
report,
|
||||
"ice-raw-stats-fold",
|
||||
renderRawICEStatsFold
|
||||
),
|
||||
translateSection(report, "rtp-stats", renderRTPStats),
|
||||
translateSection(report, "bandwidth-stats", renderBandwidthStats),
|
||||
translateSection(report, "frame-stats", renderFrameRateStats),
|
||||
@ -544,6 +549,7 @@ function renderPeerConnection(report) {
|
||||
]),
|
||||
renderRTPStats(rndr, report),
|
||||
renderICEStats(rndr, report),
|
||||
renderRawICEStats(rndr, report),
|
||||
renderSDPStats(rndr, report),
|
||||
renderBandwidthStats(rndr, report),
|
||||
renderFrameRateStats(rndr, report)
|
||||
@ -1301,6 +1307,11 @@ function renderICEStats(rndr, report) {
|
||||
report.iceRollbacks
|
||||
)
|
||||
);
|
||||
return iceDiv;
|
||||
}
|
||||
|
||||
function renderRawICEStats(rndr, report) {
|
||||
const iceDiv = renderElement("div", {});
|
||||
|
||||
// Render raw ICECandidate section
|
||||
{
|
||||
@ -1313,24 +1324,26 @@ function renderICEStats(rndr, report) {
|
||||
});
|
||||
|
||||
// render raw candidates
|
||||
foldSection.append(
|
||||
renderElements("div", {}, [
|
||||
renderRawIceTable(
|
||||
"about-webrtc-raw-local-candidate",
|
||||
report.rawLocalCandidates
|
||||
),
|
||||
renderRawIceTable(
|
||||
"about-webrtc-raw-remote-candidate",
|
||||
report.rawRemoteCandidates
|
||||
),
|
||||
])
|
||||
);
|
||||
foldSection.append(renderRawICEStatsFold(rndr, report));
|
||||
section.append(foldSection);
|
||||
iceDiv.append(section);
|
||||
}
|
||||
return iceDiv;
|
||||
}
|
||||
|
||||
function renderRawICEStatsFold(rndr, report) {
|
||||
return renderElements("div", { id: "ice-raw-stats-fold: " + report.pcid }, [
|
||||
renderRawIceTable(
|
||||
"about-webrtc-raw-local-candidate",
|
||||
report.rawLocalCandidates
|
||||
),
|
||||
renderRawIceTable(
|
||||
"about-webrtc-raw-remote-candidate",
|
||||
report.rawRemoteCandidates
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
function renderIceMetric(label, value) {
|
||||
return renderElements("div", {}, [
|
||||
renderElement("span", { className: "info-label" }, label),
|
||||
|
Loading…
Reference in New Issue
Block a user