mdn / browser-compat-data

This repository contains compatibility data for Web technologies as displayed on MDN
https://developer.mozilla.org
Creative Commons Zero v1.0 Universal
4.92k stars 1.98k forks source link

api.Navigator.cookieEnabled - Add note regarding incorrect results in IE #9430

Closed rcowsill closed 3 years ago

rcowsill commented 3 years ago

BCD reports that navigator.cookieEnabled is fully supported since IE4. There are no implementation notes given for IE.

While the navigator object does have a cookieEnabled property in (for example) IE11, it has a similar issue to Firefox prior to version 8:

navigator.cookieEnabled would report the wrong result if a site exception was in place for the page on which the check was performed.

On IE11, with cookies blocked by setting the highest security level on the internet zone, navigator.cookieEnabled returns true.

For that reason, I expected that BCD would show an implementation note for IE compatibility, similar to the Firefox <8 note.

I've confirmed this using IE11/Win7 at browserling.com. The developer tools console is not affected, but scripts on a real page are given the wrong result.

This post on stackoverflow confirms the same behaviour on IE9: https://stackoverflow.com/a/15582757

MDN page report details * Query: `api.Navigator.cookieEnabled` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled * Report started: 2021-03-11T17:55:08.201Z
ddbeck commented 3 years ago

Thanks for reporting this, @rcowsill. I've opened https://github.com/mdn/browser-compat-data/pull/9697 to fix.