mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 1211168 - Fix resource timing domainLookupStart by setting the timestamp only once. r=mcmanus
This commit is contained in:
parent
ed2326b157
commit
315c526a1e
@ -540,7 +540,7 @@ nsHttpTransaction::OnTransportStatus(nsITransport* transport,
|
||||
// and the correct value will be returned in nsPerformance.
|
||||
if (TimingEnabled() && GetRequestStart().IsNull()) {
|
||||
if (status == NS_NET_STATUS_RESOLVING_HOST) {
|
||||
SetDomainLookupStart(TimeStamp::Now());
|
||||
SetDomainLookupStart(TimeStamp::Now(), true);
|
||||
} else if (status == NS_NET_STATUS_RESOLVED_HOST) {
|
||||
SetDomainLookupEnd(TimeStamp::Now());
|
||||
} else if (status == NS_NET_STATUS_CONNECTING_TO) {
|
||||
|
Loading…
Reference in New Issue
Block a user