Closed Bug 1805860 Opened 2 years ago Closed 1 year ago

Expose storage-access permissions through the Permissions API

Categories

(Core :: Privacy: Anti-Tracking, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: johannh, Assigned: bvandersloot)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

https://github.com/privacycg/storage-access/pull/138 makes it so that SAA is "officially" based on Permissions in the spec, although storage access has always been stored in the permission manager in Firefox internally.

As part of this spec change Chrome would like to expose these permissions through the Permissions API as well, for developer utility. See https://bugs.chromium.org/p/chromium/issues/detail?id=1401266

Type: task → enhancement
Depends on: 1835895
Depends on: 1835896
Severity: -- → S3
Depends on: 1836792
Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED

This means:

  • Making creation function calls async
  • Making GetPrincipal more specific
  • Making PermissionState mState protected instead of private and virtualizing UpdateState so children can have custom update logic

Depends on D182244

Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8693b9449d3 Remove navigator.permissions.revoke dead code - r=anti-tracking-reviewers,ipc-reviewers,webidl,saschanaz,mccr8,timhuang https://hg.mozilla.org/integration/autoland/rev/48558ba49efe Notify PermissionObserver when doubly keyed permissions are updated - r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/d2a6174bbb14 Add IPC to test for storage access permission - r=anti-tracking-reviewers,timhuang,pbz https://hg.mozilla.org/integration/autoland/rev/3acd0ba1dba6 Extend dom::PermissionStatus to support storage-access permission - r=anti-tracking-reviewers,pbz https://hg.mozilla.org/integration/autoland/rev/d48d415fca83 Add "storage-access" permission to dom::Permissions - r=anti-tracking-reviewers,webidl,saschanaz,pbz,smaug

Backed out for causing bp-nu bustages in StorageAccessAPIHelper.cpp.

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: /builds/worker/checkouts/gecko/toolkit/components/antitracking/StorageAccessAPIHelper.cpp:873:5: error: unknown type name 'FeaturePolicy'; did you mean 'dom::FeaturePolicy'?
Flags: needinfo?(bvandersloot)

This is a simple fix in the compile that I will get right on.

This built successfully locally and in a try run on linux64. How can I catch errors like this before landing?

Flags: needinfo?(bvandersloot)
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6bfa22051eca Remove navigator.permissions.revoke dead code - r=anti-tracking-reviewers,ipc-reviewers,webidl,saschanaz,mccr8,timhuang https://hg.mozilla.org/integration/autoland/rev/e8b855af9e2b Notify PermissionObserver when doubly keyed permissions are updated - r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/8ed902714cda Add IPC to test for storage access permission - r=anti-tracking-reviewers,timhuang,pbz https://hg.mozilla.org/integration/autoland/rev/f729d92211b1 Extend dom::PermissionStatus to support storage-access permission - r=anti-tracking-reviewers,pbz https://hg.mozilla.org/integration/autoland/rev/b681bc2053b3 Add "storage-access" permission to dom::Permissions - r=anti-tracking-reviewers,webidl,saschanaz,pbz,smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: