<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>73088</bug_id>
          <alias>DOM-dnt</alias>
          <creation_ts>2011-11-24 10:56:11 -0800</creation_ts>
          <short_desc>Implementing the Javascript Interface for the Do Not Track HTTP header</short_desc>
          <delta_ts>2022-08-19 17:38:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="karl">karl+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahf</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bweinstein</cc>
    
    <cc>cdumez</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>sfalken</cc>
    
    <cc>webmaster</cc>
    
    <cc>wilander</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>508839</commentid>
    <comment_count>0</comment_count>
    <who name="karl">karl+webkit</who>
    <bug_when>2011-11-24 10:56:11 -0800</bug_when>
    <thetext>The Do Not Track HTTP header is a flag to give the possibility for users to advertise their preferences to not be tracked. The specification has been published as 1st WD already.

About http://www.w3.org/TR/2011/WD-tracking-dnt-20111114/
Tracking Preference Expression (DNT)
W3C Working Draft 14 November 2011


Currently the proposed DOM Interface for this HTTP header is
http://www.w3.org/TR/2011/WD-tracking-dnt-20111114/#js-dom

WebIDL
[NoInterfaceObject]
interface NavigatorDoNotTrack {

    readonly attribute DOMString doNotTrack;
};

The specification might need to be changed. 

Note that Mozilla has a feature documented differently.
https://developer.mozilla.org/en/DOM/navigator.doNotTrack
but no real bugs opened for it 
the closest is https://bugzilla.mozilla.org/show_bug.cgi?id=630357

And IE supports document.navigator.doNotTrack
http://www.w3.org/Submission/2011/SUBM-web-tracking-protection-20110224/#dnt-uas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>525755</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-21 15:55:49 -0800</bug_when>
    <thetext>Note that this is experimentally implemented in Safari now. Just commenting to save someone else the confusion I had when seeing it work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630163</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Færøy">ahf</who>
    <bug_when>2012-05-22 03:25:01 -0700</bug_when>
    <thetext>Is anybody working on getting this into trunk?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890455</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-10 17:16:43 -0700</bug_when>
    <thetext>I think except Safari - no other browser support DND, do we need to extend this functionality or add this? or we can mark this as &quot;RESOLVED WONTFIX&quot; at this point?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890457</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-10 17:20:17 -0700</bug_when>
    <thetext>I might be wrong here - I believe:

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack

Based on this - if I do &gt;&gt; console.log(navigator.doNotTrack); across all browsers, I get:

Safari 15.6 --&gt; undefined

Firefox Nightly 105 --&gt; undefined

Chrome Canary 106 --&gt; 1

Although MDN table mentions that Firefox do support it, it might be turned off by default.

___

So I think some browsers do support it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892568</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-08-19 17:32:36 -0700</bug_when>
    <thetext>Chrome still supports navigator.doNotTrack, and even has UI to enable it: &lt;https://support.google.com/chrome/answer/2790761&gt;. I don&apos;t think that we have any intention of re-adding it, but CC&apos;ing John in case I&apos;m wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1892569</commentid>
    <comment_count>6</comment_count>
    <who name="John Wilander">wilander</who>
    <bug_when>2022-08-19 17:38:57 -0700</bug_when>
    <thetext>You’re right, Alexey. See “Removed Support For the DNT (“Do Not Track”) Signal” here: https://webkit.org/blog/8613/intelligent-tracking-prevention-2-1/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>