зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1570660 - Add network ID to about:networking, r=mayhemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D40220 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
68864b02f7
Коммит
213a075db8
|
@ -28,6 +28,7 @@ const gRequestNetworkingData = {
|
|||
dnslookuptool: () => {},
|
||||
logging: () => {},
|
||||
rcwn: gDashboard.requestRcwnStats,
|
||||
networkid: displayNetworkID,
|
||||
};
|
||||
const gDashboardCallbacks = {
|
||||
http: displayHttp,
|
||||
|
@ -177,6 +178,16 @@ function displayRcwnStats(data) {
|
|||
}
|
||||
}
|
||||
|
||||
function displayNetworkID() {
|
||||
let linkIsUp = gNetLinkSvc.isLinkUp;
|
||||
let linkStatusKnown = gNetLinkSvc.linkStatusKnown;
|
||||
let networkID = gNetLinkSvc.networkID;
|
||||
|
||||
document.getElementById("networkid_isUp").innerText = linkIsUp;
|
||||
document.getElementById("networkid_statusKnown").innerText = linkStatusKnown;
|
||||
document.getElementById("networkid_id").innerText = networkID;
|
||||
}
|
||||
|
||||
function requestAllNetworkingData() {
|
||||
for (let id in gRequestNetworkingData) {
|
||||
requestNetworkingDataForTab(id);
|
||||
|
|
|
@ -50,6 +50,9 @@
|
|||
<div class="category" id="category-rcwn">
|
||||
<span class="category-name" data-l10n-id="rcwn"/>
|
||||
</div>
|
||||
<div class="category" id="category-networkid">
|
||||
<span class="category-name" data-l10n-id="networkid"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="main-content">
|
||||
<div class="header">
|
||||
|
@ -241,6 +244,25 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="networkid" class="tab" hidden="true">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-l10n-id="networkid-isUp"/>
|
||||
<th data-l10n-id="networkid-statusKnown"/>
|
||||
<th data-l10n-id="networkid-id"/>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="networkid_content">
|
||||
<tr>
|
||||
<td id="networkid_isUp"> </td>
|
||||
<td id="networkid_statusKnown"> </td>
|
||||
<td id="networkid_id"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -59,3 +59,12 @@ rcwn-avg-long = Long Average
|
|||
rcwn-std-dev-long = Long Standard Deviation
|
||||
rcwn-cache-slow = Cache slow count
|
||||
rcwn-cache-not-slow = Cache not slow count
|
||||
networkid = Network ID
|
||||
networkid-id = Network ID
|
||||
|
||||
## Link is intended as "network link"
|
||||
|
||||
networkid-isUp = Link is up
|
||||
networkid-statusKnown = Link status is known
|
||||
|
||||
##
|
||||
|
|
Загрузка…
Ссылка в новой задаче