[Webkit-unassigned] [Bug 75008] New: navigator.doNotTrack returns wrong values.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 08:07:25 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=75008

           Summary: navigator.doNotTrack returns wrong values.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: justin.lebar+bug at gmail.com


We decided that navigator.doNotTrack would return "yes/no/unspecified" in Firefox, but Safari 5.1 apparently [1] returns "1/0/(empty string)" to match the DNT header.

The reason we did "yes/no/unspecified" is because we wanted no value to parse as "false" in JS.  This way, buggy code which does |if (navigator.doNotTack)| will fail closed.  With 1/0/(unspecified), the bogus boolean check works so long as you never have people explicitly opting in to DNT; thus we were afraid that sites would rely on DNT being a boolean, rather than a tri-state, and then we'd never be able to send navigator.doNotTrack == "0".

How would you feel about changing to match Firefox's implementation?

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=712616

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list