mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28: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
|
|
@ -888,6 +888,11 @@ nsLoadGroup::TelemetryReportChannel(nsITimedChannel *aTimedChannel,
|
|||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
TimeStamp secureConnectionStart;
|
||||
rv = aTimedChannel->GetSecureConnectionStart(&secureConnectionStart);
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
TimeStamp connectEnd;
|
||||
rv = aTimedChannel->GetConnectEnd(&connectEnd);
|
||||
if (NS_FAILED(rv))
|
||||
|
|
@ -921,9 +926,15 @@ nsLoadGroup::TelemetryReportChannel(nsITimedChannel *aTimedChannel,
|
|||
domainLookupStart, domainLookupEnd); \
|
||||
} \
|
||||
\
|
||||
if (!secureConnectionStart.IsNull() && !connectEnd.IsNull()) { \
|
||||
Telemetry::AccumulateTimeDelta( \
|
||||
Telemetry::HTTP_##prefix##_TLS_HANDSHAKE, \
|
||||
secureConnectionStart, connectEnd); \
|
||||
} \
|
||||
\
|
||||
if (!connectStart.IsNull() && !connectEnd.IsNull()) { \
|
||||
Telemetry::AccumulateTimeDelta( \
|
||||
Telemetry::HTTP_##prefix##_TCP_CONNECTION, \
|
||||
Telemetry::HTTP_##prefix##_TCP_CONNECTION_2, \
|
||||
connectStart, connectEnd); \
|
||||
} \
|
||||
\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue