Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2013 00:40:02 +0200
From:      Eitan Adler <eadler@freebsd.org>
To:        Tom Rhodes <trhodes@freebsd.org>
Cc:        wblock@wonkity.com, Hiroki Sato <hrs@freebsd.org>, svn-doc-head@freebsd.org, gjb@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org
Subject:   Re: svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js
Message-ID:  <CAF6rxgnxjDn_sjviCSZVpMDs40OYZS6D6MrKzs0YZvm2sC-qdg@mail.gmail.com>
In-Reply-To: <20130607113436.4dc1cbc3.trhodes@FreeBSD.org>
References:  <20130606140542.GA1625@glenbarber.us> <20130606.232805.1823224325157138890.hrs@allbsd.org> <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com> <20130607.092534.356568932887378565.hrs@allbsd.org> <20130607113436.4dc1cbc3.trhodes@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7 June 2013 17:34, Tom Rhodes <trhodes@freebsd.org> wrote:
> On Fri, 07 Jun 2013 09:25:34 +0900 (JST)
> Hiroki Sato <hrs@FreeBSD.org> wrote:
>
>> Eitan Adler <eadler@freebsd.org> wrote
>>   in <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com>:
>>
>> ea> On 6 June 2013 16:28, Hiroki Sato <hrs@freebsd.org> wrote:
>> ea> >
>> ea> >  null, "", and undefined are evaluated as false in Javascript.
>> ea> >
>> ea> Javascript has an odd concept of true and false:
>> ea> null, an empty string,  +0, -0, and NaN, and false are the 'false' values.
>> ea>
>> ea> An object will return true.
>>
>>  I see.  I am not familiar with DNT implementation, but is there a www
>>  browser to define navigator.doNotTrack as the value "false"?
>>
>>  If so, I think something like the following is needed.
>>
>>  var dnt = window.navigator.msDoNotTrack || window.navigator.doNotTrack;
>>  var allow_track = (dnt && dnt == 'yes'|| dnt == 1);
>>
>> -- Hiroki
>>
>
> I was assuming based on the discussion that we need to perform
> more than a single check on this, but will this one actually
> work?

No, after some thoughts I realized that this commit is completely
broken.  We must explicitly check for "yes" and "1". This check
basically disabled GA for newer browsers.

 Do Not Track
(Preference Tracking Extension) is a barely followed draft standard.:(


-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgnxjDn_sjviCSZVpMDs40OYZS6D6MrKzs0YZvm2sC-qdg>