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

Glen Barber gjb at FreeBSD.org
Thu Jun 6 14:05:45 UTC 2013


On Thu, Jun 06, 2013 at 07:59:17AM -0600, Warren Block wrote:
> On Thu, 6 Jun 2013, Glen Barber wrote:
> 
> >Author: gjb
> >Date: Thu Jun  6 11:49:53 2013
> >New Revision: 41848
> >URL: http://svnweb.freebsd.org/changeset/doc/41848
> >
> >Log:
> > Check for boolean 'true' case of w.n.dNT.
> >
> > Submitted by:	des
> > Approved by:	doceng (implicit)
> >
> >Modified:
> > head/en_US.ISO8859-1/htdocs/layout/js/google.js
> >
> >Modified: head/en_US.ISO8859-1/htdocs/layout/js/google.js
> >==============================================================================
> >--- head/en_US.ISO8859-1/htdocs/layout/js/google.js	Thu Jun  6 08:05:17 2013	(r41847)
> >+++ head/en_US.ISO8859-1/htdocs/layout/js/google.js	Thu Jun  6 11:49:53 2013	(r41848)
> >@@ -18,7 +18,7 @@ var h = document.location.host;
> > */
> >var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)/i;
> >
> >-if (window.navigator.doNotTrack === "yes") {
> >+if (window.navigator.doNotTrack == true) {
> >	allow_track = false;
> >}
> 
> Could that just be
> 
>   if (window.navigator.doNotTrack) {
>       allow_track = false;
>   }

Not as far as I can tell.  If DNT is not set,
window.navigator.doNotTrack is null, so it would evaluate to:

  if () {
    allow_track = false;
  }

which I believe will always evaluate true.

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-doc-head/attachments/20130606/d68501e3/attachment.sig>


More information about the svn-doc-head mailing list