Storage Access API hasStorageAccess() always returns false with `network.cookie.cookieBehavior = 0`

RESOLVED FIXED in Firefox 64

Status

()

defect
RESOLVED FIXED
9 months ago
9 months ago

People

(Reporter: englehardt, Assigned: Ehsan)

Tracking

unspecified
Firefox 64
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox64 fixed)

Details

Attachments

(1 attachment)

When the default cookie policy is used (network.cookie.cookieBehavior = 0) calls to hasStorageAccess() always return false. Calls to requestStorageAccess() resolve the promise as if storage access is granted (which is expected).

Steps to reproduce:
* Visit https://senglehardt.com/test/storage_access/ with dom.storage_access.enabled = true.
* Click "Call hasStorageAccess()"
Oops, great find!
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b24c0c835bf
Ensure that hasStorageAccess() returns a sensible value with cookieBehavior set to accept all cookies r=baku
https://hg.mozilla.org/mozilla-central/rev/7b24c0c835bf
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.