Closed Bug 1733556 Opened 3 years ago Closed 1 year ago

Add Permissions Policy support for Storage Access API

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: johannh, Assigned: bvandersloot)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

We've recently added support for nested storage access requests to the spec, under the caveat that it can be disallowed through permissions policy allow attributes.

Would be nice to implement this for Gecko.

Severity: -- → S3
Priority: P3 → P2
Assignee: nobody → bvandersloot
Attachment #9341353 - Attachment description: WIP: Bug 1733556 - Expose "storage-access" to the Permissions Policy - WIP → Bug 1733556 - Expose "storage-access" to the Permissions Policy - r=#anti-tracking-reviewers!
Status: NEW → ASSIGNED
Attachment #9341354 - Attachment description: WIP: Bug 1733556 - Perform Permissions Policy check in requestStorageAccess() - WIP → Bug 1733556 - Perform Permissions Policy check in requestStorageAccess() - r=#anti-tracking-reviewers!
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d8c19265b981 Expose "storage-access" to the Permissions Policy - r=anti-tracking-reviewers,pbz,smaug https://hg.mozilla.org/integration/autoland/rev/6c09379cdb5a Perform Permissions Policy check in requestStorageAccess() - r=anti-tracking-reviewers,pbz https://hg.mozilla.org/integration/autoland/rev/fa21a55ce837 Perform Permissions Policy check in navigator.permissions.query for "storage-access" - r=anti-tracking-reviewers,pbz

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)

(In reply to Benjamin VanderSloot [:bvandersloot] from comment #6)

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?

It's a non-unified build, you can also do that locally to verify the fix. I usually just run all the build jobs before landing via mach try fuzzy. Generally you want to make sure to get the includes right. Unified may cover up missing includes. Though here it looks like a namespace issue?

Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa21c5369a0c Expose "storage-access" to the Permissions Policy - r=anti-tracking-reviewers,pbz,smaug https://hg.mozilla.org/integration/autoland/rev/6ef3456dba87 Perform Permissions Policy check in requestStorageAccess() - r=anti-tracking-reviewers,pbz https://hg.mozilla.org/integration/autoland/rev/b58d05168ab7 Perform Permissions Policy check in navigator.permissions.query for "storage-access" - r=anti-tracking-reviewers,pbz
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: