Fix navigator.cookieEnabled for dFPI
Categories
(Core :: Privacy: Anti-Tracking, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: timhuang, Assigned: timhuang)
References
Details
(Whiteboard: [FXATPS-dFPI-Mochitests])
Attachments
(1 file)
Currently, navigator.cookieEnabled will return false in third-party contexts when dFPI is enabled. This behavior is incorrect because the cookie is still available in third-party contexts.
Also, we should still return true even the iframe is sandboxed given that the cookie is not disabled but throw a security error according to the WPT test.
We need to fix this in order to make the WPT cookie-enabled-noncookie-frame.html passing.
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
We change to return true for 'navigator.cookieEnabled' when the cookie
is partitioned. It did return false because the storage access is not
allowed in this case. But, acutally, we should return true because the
cookie is available.
Also, we should still return true in the case where accessing cookies
gets a security error, e.g. a sandboxed iframe. This behavior matches to
the spec.
Comment 3•3 years ago
|
||
| bugherder | ||
Description
•