From owner-svn-doc-head@FreeBSD.ORG Fri Jun 7 22:40:40 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B7E5B5E for ; Fri, 7 Jun 2013 22:40:40 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by mx1.freebsd.org (Postfix) with ESMTP id 602D418CA for ; Fri, 7 Jun 2013 22:40:40 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id x10so5359649pdj.1 for ; Fri, 07 Jun 2013 15:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=Isui3Nh0klVS6VB+Vu4mrtCRc9wkLN4ON9sBihfzeHY=; b=XAufXMjk/SC/1ORS8tb/wmrv1/K32wnuz1Z36TkbiHWEq23XG/FWlOkag4h82Kmjqy 9HYnMo4TBrLyVbddc7ZvtMeWV1uiVDDOZiP1fq6+IF+RUJWTT0e7mRn9V+mhetkHIDeW MaMsdPXJ/yAsvBIvqYCwa5ccUm3yIkuCe4sTo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=Isui3Nh0klVS6VB+Vu4mrtCRc9wkLN4ON9sBihfzeHY=; b=SOJgw9Vj9zuVdCi6lKrx6oj99HqLy5wZV7pl6t6lx8KE1We00sO+AyzaOQg80WPAG1 5bYCZ8A2zaIbxBS9roJ0etGC6YUYPZCOqHbrNXEJXgHGi6IErLzMLExSuMmV6db19k/D TBrlH6s8wkXmBv//kctD08nuEXnfsM+60IzEgEzk+YUKGlt32hJn737+G7K3GXXK7MFo BMkBDL31Feor63f7Fxo2ViPij3NX9LPbt8UPhPeljQp5SHaLdgUvMz4sYG4x3mvcIq/H oe9pn2hQr8BmCpQ02XCfxDtQBJakeRVv/6YED+KpCoefVd7nAscNp422wvZnJWruaNDl bgiA== X-Received: by 10.68.224.104 with SMTP id rb8mr654151pbc.206.1370644833068; Fri, 07 Jun 2013 15:40:33 -0700 (PDT) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.70.45.33 with HTTP; Fri, 7 Jun 2013 15:40:02 -0700 (PDT) In-Reply-To: <20130607113436.4dc1cbc3.trhodes@FreeBSD.org> References: <20130606140542.GA1625@glenbarber.us> <20130606.232805.1823224325157138890.hrs@allbsd.org> <20130607.092534.356568932887378565.hrs@allbsd.org> <20130607113436.4dc1cbc3.trhodes@FreeBSD.org> From: Eitan Adler Date: Sat, 8 Jun 2013 00:40:02 +0200 X-Google-Sender-Auth: F0UyeUPVtqbxo9tl0Xr_ajEGlEo Message-ID: Subject: Re: svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js To: Tom Rhodes Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmGEXPUgqiBNFGJezx0Ue4zWrrkgxlv7rMPLg++nt0Fdi47EYJNlaE0PSwCzm31a8c4mSPf Cc: wblock@wonkity.com, Hiroki Sato , svn-doc-head@freebsd.org, gjb@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2013 22:40:40 -0000 On 7 June 2013 17:34, Tom Rhodes wrote: > On Fri, 07 Jun 2013 09:25:34 +0900 (JST) > Hiroki Sato wrote: > >> Eitan Adler wrote >> in : >> >> ea> On 6 June 2013 16:28, Hiroki Sato 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