Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Do Not Track" is enabled since IE9, it has nothing to do with the platform?! #1754

Closed
ghost opened this issue Jul 28, 2018 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Jul 28, 2018

For dnt_helper.js in node.org, I've noticed there's a snippet of codes to tell whether the user has enabled dnt tracker or not, some of them are (take key parts):

function _dntEnabled(dnt, userAgent) {

'use strict';

// for old version of IE we need to use the msDoNotTrack property of navigator
// on newer versions, and newer platforms, this is doNotTrack but, on the window object
// Safari also exposes the property on the window object.
var dntStatus = dnt || navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
var ua = userAgent || navigator.userAgent;

// List of Windows versions known to not implement DNT according to the standard.
var anomalousWinVersions = ['Windows NT 6.1', 'Windows NT 6.2', 'Windows NT 6.3'];
.....

// With old versions of IE, DNT did not exist so we simply return false;
......
} else if (isIE && platform && anomalousWinVersions.indexOf(platform.toString()) !== -1) {
    // default is on, which does not honor the specification
    dntStatus = 'Unspecified';
.....
return dntStatus === 'Enabled';

}

It seems that since IE9, we've got "Do Not Track Me" function. And in IE 11, it'd be 'Windows NT 6.3'. So I suspect whether it has nothing to do with the 'platform'.

Now take IE 9 as an example:

ie_protection
ie_protection2

As for IE 11, we've automatically enabled this here:
https://support.microsoft.com/en-us/help/17288/windows-internet-explorer-11-use-do-not-track

image

I'm not sure whether this is a bug in the codes, but IE9 (since) has really started this function. I suggest we should take the IE version (>=9) as a level to check whether we've supported dnt or not?

What do you think of this?

PS:Checked all the browsers, the result of dnt is:

default

For borwser dns support info, plz see: https://testdrive-archive.azurewebsites.net/Browser/DoNotTrack/Default.html

@ghost ghost assigned phillipj and unassigned phillipj Jul 28, 2018
@ghost
Copy link
Author

ghost commented Jul 28, 2018

No problem, I misunderstood what the codes mean:You wanna set when automatically DNT = 1, ignore it. I closed this.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant