Closed Bug 1765307 Opened 3 years ago Closed 3 years ago

Unify Storage Access API logic between privileged and typical API

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

There is a lot of logic in the Storage Access API calls on the document logic that is repeated. This bug concerns itself with Document::RequestStorageAccess and Document::RequestStorageAccessForOrigin.
These should have common logic broken into helper functions, preferrably in the anti-tracking module.

Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c341bc2a708 part 1 - Create new context helper for requestStorageAccessForOrigin, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/babee487e11f part 2 - Convert privileged API to use helpers for the synchronous portion, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/351f1d3fd689 part 3 - Create helper for the async portion of the requestStorageAccess[ForOrigin] functions, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/417de8ef5343 part 4 - Update requestStorageAccess[ForOrigin] functions to use helper functino for the asynchronous portion, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/44991705d133 part 5 - Make requestStorageAccessForOrigin check cookie permissions in the parent process, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/56feedc5c0a3 part 6 - Add inline comments to explain changes from this set, r=anti-tracking-reviewers,timhuang
Flags: needinfo?(bvandersloot)

Request made because I merged this during the soft code freeze. I'll re-merge Monday.

Flags: needinfo?(bvandersloot)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 102 Branch → ---
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/347cb206479e part 1 - Create new context helper for requestStorageAccessForOrigin, r=anti-tracking-reviewers,timhuang
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09160a6522cd part 2 - Convert privileged API to use helpers for the synchronous portion, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/202293397fb8 part 3 - Create helper for the async portion of the requestStorageAccess[ForOrigin] functions, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/8d2312dcd79f part 4 - Update requestStorageAccess[ForOrigin] functions to use helper functino for the asynchronous portion, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/a58563979061 part 5 - Make requestStorageAccessForOrigin check cookie permissions in the parent process, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/be7ed002d159 part 6 - Add inline comments to explain changes from this set, 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: