Closed Bug 1836792 Opened 1 year ago Closed 1 year ago

Document::RequestStorageAccess should use a new site-site scoped permission

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

This permission should be similar to the 3rdPartyStorage^ permission, but have slightly different semantics. We need to keep around the old one for requestStorageAccessFor.

  • the thing after the "^" should be a site, not origin
  • it only applies to iframes, not the top-level

We should fold this into the existing StorageAccessPermissionRequest and StorageAccessPermissionPrompt using request options and handling any ugliness there. 3rdPartyStorage^ permission is strictly stronger, so we can treat that like having both permissions. This can be done inside of those classes' behavior.

This also requires a little extension of the GeckoView to not break requestStorageAccess calls in Android.

Alternative to Bug 1835895, Bug 1835896, and Bug 1835908

Severity: -- → S3
Priority: -- → P2
Assignee: nobody → bvandersloot
Attachment #9337876 - Attachment description: WIP: Bug 1836792, part 1 - Add new site-pair-scoped permission 3rdPartyFrameStorage, WIP → Bug 1836792, part 1 - Add new site-pair-scoped permission 3rdPartyFrameStorage, r=#anti-tracking!
Attachment #9337877 - Attachment description: WIP: Bug 1836792, part 2 - Make changes to StorageAccessPermission{Request,Prompt} to allow requesting 3rdPartyFrameStorage, WIP → Bug 1836792, part 2 - Make changes to StorageAccessPermission{Request,Prompt} to allow requesting 3rdPartyFrameStorage, r=#anti-tracking!
Attachment #9337878 - Attachment description: WIP: Bug 1836792, part 3 - Adopt permissions UI to just show the same old prompt for 3rdPartyFrameAccess requests, WIP → Bug 1836792, part 3 - Adopt permissions UI to just show the same old prompt for 3rdPartyFrameAccess requests, r=#anti-tracking!
Attachment #9337879 - Attachment description: WIP: Bug 1836792, part 4 - Move RequestStorageAccess to frame-only permission - WIP → Bug 1836792, part 4 - Move RequestStorageAccess to frame-only permission - r=#anti-tracking!
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/10c928636a22 part 1 - Add new site-pair-scoped permission 3rdPartyFrameStorage, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/51493ddc8b4f part 2 - Make changes to StorageAccessPermission{Request,Prompt} to allow requesting 3rdPartyFrameStorage, r=anti-tracking-reviewers,timhuang,pbz https://hg.mozilla.org/integration/autoland/rev/683d1cdc0e5f part 3 - Adopt permissions UI to just show the same old prompt for 3rdPartyFrameAccess requests, r=anti-tracking-reviewers,timhuang,pbz https://hg.mozilla.org/integration/autoland/rev/79cbd089410c part 4 - Move RequestStorageAccess to frame-only permission - r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/f7e8a47d6ca5 part 5 - Stop the use of 3rdPartyFrameStorage permissions beyond Nightly - r=anti-tracking-reviewers,timhuang
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: