Re: [Open Issue] Privacy concern with Navigation Timing

On Fri, 22 Oct 2010 10:07:43 +0200, Zhiheng Wang <zhihengw@google.com>  
wrote:

> On Thu, Oct 21, 2010 at 7:46 AM, Sigbjørn Vik <sigbjorn@opera.com> wrote:

>> "If no domain lookup is required, go to step 11. Otherwise, immediately
>> before a user agent starts the domain name lookup, record the time as
>> domainLookupStart."
>> This gets confusing in the case of a half-finished DNS prefetch.
>
>
>    Could you please elaborate here?

I am uncertain to what the intended results are after a DNS prefetch, and  
how the algorithm gets there.

I would expect the preferred method to be that domainLookupStart should  
equal fetchStart (or the actual start), and domainLookupEnd the actual  
end. But I see no way through the algorithm to set domainLookupEnd,  
without requiring the implementation to set domainLookupStart to a new  
time, which would be wrong in either case.

One possible fix (this will leave domainLookupStart equal to fetchStart),  
is the following.
"Step n: If no domain lookup is required, go to step n+2. If domain lookup  
was started before fetchStart, go to step n+1. Otherwise, set  
domainLookupStart.
Step n+1: Set domainLookupEnd."



-- 
Sigbjørn Vik
Quality Assurance
Opera Software

Received on Friday, 22 October 2010 08:49:11 UTC