svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js

Eitan Adler eadler at freebsd.org
Fri Jun 7 22:40:40 UTC 2013


On 7 June 2013 17:34, Tom Rhodes <trhodes at freebsd.org> wrote:
> On Fri, 07 Jun 2013 09:25:34 +0900 (JST)
> Hiroki Sato <hrs at FreeBSD.org> wrote:
>
>> Eitan Adler <eadler at freebsd.org> wrote
>>   in <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA at mail.gmail.com>:
>>
>> ea> On 6 June 2013 16:28, Hiroki Sato <hrs at 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


More information about the svn-doc-head mailing list