mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
DevTools - network - implement the secureConnectionStart property for the PerformanceTiming
https://github.com/MoonchildProductions/moebius/pull/116 ("/testing" and "/toolkit" in in the previous commit)
This commit is contained in:
parent
38e95f9e35
commit
54f2e6eafd
32 changed files with 263 additions and 13 deletions
|
|
@ -581,6 +581,11 @@ netmonitor.timings.blocked=Blocked:
|
|||
# in a "dns" state.
|
||||
netmonitor.timings.dns=DNS resolution:
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.timings.ssl): This is the label displayed
|
||||
# in the network details timings tab identifying the amount of time spent
|
||||
# in a "tls" handshake state.
|
||||
netmonitor.timings.ssl=TLS setup:
|
||||
|
||||
# LOCALIZATION NOTE (netmonitor.timings.connect): This is the label displayed
|
||||
# in the network details timings tab identifying the amount of time spent
|
||||
# in a "connect" state.
|
||||
|
|
|
|||
|
|
@ -963,7 +963,7 @@ NetworkDetailsView.prototype = {
|
|||
if (!response) {
|
||||
return;
|
||||
}
|
||||
let { blocked, dns, connect, send, wait, receive } = response.timings;
|
||||
let { blocked, dns, connect, ssl, send, wait, receive } = response.timings;
|
||||
|
||||
let tabboxWidth = $("#details-pane").getAttribute("width");
|
||||
|
||||
|
|
@ -988,6 +988,11 @@ NetworkDetailsView.prototype = {
|
|||
$("#timings-summary-connect .requests-menu-timings-total")
|
||||
.setAttribute("value", L10N.getFormatStr("networkMenu.totalMS", connect));
|
||||
|
||||
$("#timings-summary-ssl .requests-menu-timings-box")
|
||||
.setAttribute("width", ssl * scale);
|
||||
$("#timings-summary-ssl .requests-menu-timings-total")
|
||||
.setAttribute("value", L10N.getFormatStr("networkMenu.totalMS", ssl));
|
||||
|
||||
$("#timings-summary-send .requests-menu-timings-box")
|
||||
.setAttribute("width", send * scale);
|
||||
$("#timings-summary-send .requests-menu-timings-total")
|
||||
|
|
@ -1007,6 +1012,8 @@ NetworkDetailsView.prototype = {
|
|||
.style.transform = "translateX(" + (scale * blocked) + "px)";
|
||||
$("#timings-summary-connect .requests-menu-timings-box")
|
||||
.style.transform = "translateX(" + (scale * (blocked + dns)) + "px)";
|
||||
$("#timings-summary-ssl .requests-menu-timings-box")
|
||||
.style.transform = "translateX(" + (scale * blocked) + "px)";
|
||||
$("#timings-summary-send .requests-menu-timings-box")
|
||||
.style.transform =
|
||||
"translateX(" + (scale * (blocked + dns + connect)) + "px)";
|
||||
|
|
@ -1022,6 +1029,8 @@ NetworkDetailsView.prototype = {
|
|||
.style.transform = "translateX(" + (scale * blocked) + "px)";
|
||||
$("#timings-summary-connect .requests-menu-timings-total")
|
||||
.style.transform = "translateX(" + (scale * (blocked + dns)) + "px)";
|
||||
$("#timings-summary-ssl .requests-menu-timings-total")
|
||||
.style.transform = "translateX(" + (scale * blocked) + "px)";
|
||||
$("#timings-summary-send .requests-menu-timings-total")
|
||||
.style.transform =
|
||||
"translateX(" + (scale * (blocked + dns + connect)) + "px)";
|
||||
|
|
|
|||
|
|
@ -478,6 +478,14 @@
|
|||
<hbox class="requests-menu-timings-box connect"/>
|
||||
<label class="plain requests-menu-timings-total"/>
|
||||
</hbox>
|
||||
<hbox id="timings-summary-ssl"
|
||||
class="tabpanel-summary-container"
|
||||
align="center">
|
||||
<label class="plain tabpanel-summary-label"
|
||||
data-localization="content=netmonitor.timings.ssl"/>
|
||||
<hbox class="requests-menu-timings-box ssl"/>
|
||||
<label class="plain requests-menu-timings-total"/>
|
||||
</hbox>
|
||||
<hbox id="timings-summary-send"
|
||||
class="tabpanel-summary-container"
|
||||
align="center">
|
||||
|
|
|
|||
|
|
@ -1099,7 +1099,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
|||
*/
|
||||
_createWaterfallView: function (item, timings, fromCache) {
|
||||
let { target } = item;
|
||||
let sections = ["blocked", "dns", "connect", "send", "wait", "receive"];
|
||||
let sections = ["blocked", "dns", "connect", "ssl", "send", "wait", "receive"];
|
||||
// Skipping "blocked" because it doesn't work yet.
|
||||
|
||||
let timingsNode = $(".requests-menu-timings", target);
|
||||
|
|
|
|||
|
|
@ -226,6 +226,8 @@ function test() {
|
|||
"The eventTimings attachment has an incorrect |timings.blocked| property.");
|
||||
is(typeof requestItem.attachment.eventTimings.timings.dns, "number",
|
||||
"The eventTimings attachment has an incorrect |timings.dns| property.");
|
||||
is(typeof requestItem.attachment.eventTimings.timings.ssl, "number",
|
||||
"The eventTimings attachment has an incorrect |timings.ssl| property.");
|
||||
is(typeof requestItem.attachment.eventTimings.timings.connect, "number",
|
||||
"The eventTimings attachment has an incorrect |timings.connect| property.");
|
||||
is(typeof requestItem.attachment.eventTimings.timings.send, "number",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@
|
|||
|
||||
--timing-blocked-color: rgba(235, 83, 104, 0.8);
|
||||
--timing-dns-color: rgba(223, 128, 255, 0.8); /* pink */
|
||||
--timing-ssl-color: rgba(217, 102, 41, 0.8); /* orange */
|
||||
--timing-connect-color: rgba(217, 102, 41, 0.8); /* orange */
|
||||
--timing-send-color: rgba(70, 175, 227, 0.8); /* light blue */
|
||||
--timing-wait-color: rgba(94, 136, 176, 0.8); /* blue grey */
|
||||
|
|
@ -74,6 +75,7 @@
|
|||
|
||||
--timing-blocked-color: rgba(235, 83, 104, 0.8);
|
||||
--timing-dns-color: rgba(223, 128, 255, 0.8); /* pink */
|
||||
--timing-ssl-color: rgba(217, 102, 41, 0.8); /* orange */
|
||||
--timing-connect-color: rgba(217, 102, 41, 0.8); /* orange */
|
||||
--timing-send-color: rgba(0, 136, 204, 0.8); /* blue */
|
||||
--timing-wait-color: rgba(95, 136, 176, 0.8); /* blue grey */
|
||||
|
|
@ -505,6 +507,10 @@
|
|||
background-color: var(--timing-connect-color);
|
||||
}
|
||||
|
||||
.requests-menu-timings-box.ssl {
|
||||
background-color: var(--timing-ssl-color);
|
||||
}
|
||||
|
||||
.requests-menu-timings-box.send {
|
||||
background-color: var(--timing-send-color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue