From owner-svn-doc-all@FreeBSD.ORG Fri Jun 7 22:40:33 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7C488B1C for ; Fri, 7 Jun 2013 22:40:33 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 5208C18C5 for ; Fri, 7 Jun 2013 22:40:33 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id rl6so2891582pac.29 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=pgxUbjW0gse31m97z1XbQzyWRTw21Yf5Z9EcRKZm3SHCOPiXLXDS11HgnRrtevBkUx NGbjGVQYnnUoD2YlarB8+Wxms0kiG9TqUjHF2h6Q+VSbO5Z3JLZyR0aBnKwP+pjQ6K1U y756jprq7OAyc15NU9sxBjXA9keRMQzlxFM3Q9Nc5iKVLvTJlqMFX2TLDLZnORau47Wv i+FARGuldbMQO6Ye12NWpPOvXf80YuHxkTcZ0IQuU6Vh3fmU9CGxleY8h8c/Mx32YUfd wOcAvSTVpkwCwTvD9E1gyWfqRZSobIljHvy4tINEMln9IfykMTAiNT6DLmzDG15oA08G YpSQ== 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: ALoCoQlCL0aa4yK+2KeDFsKeqfnMQf7/KXXQCxswJV3jaoVZJmcZscGZ7aPogcejv6auSwX2GVSe 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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2013 22:40:33 -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