Bug 1211168 - Fix resource timing domainLookupStart by setting the timestamp only once. r=mcmanus

This commit is contained in:
Sajal Kayan 2015-10-04 18:43:15 +07:00
parent ed2326b157
commit 315c526a1e

View File

@ -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) {