Closed Bug 1765313 Opened 3 years ago Closed 3 years ago

Move Storage Access API logic from ContentBlocking.h to its own file/folder in the AT module

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: bvandersloot, Assigned: bvandersloot)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(3 files)

No description provided.
Assignee: nobody → bvandersloot
Status: NEW → ASSIGNED

These functions are used to check if an object or context should have storage access.
Therefore they belong in StorageAccess.h with other functions that serve this purpose.

Depends on D148284

The only functions that remain are used as helper functions in the various variants of the Storage Access API.
To make this clearer, I have renamed this class and file that contains it.

Depends on D148285

Depends on: 1772590
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81a0f8c40381 part 1 - Remove dead code from ContentBlocking.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/f0895e88c27e part 2 - Move the ShouldAllowAccessFor functions to StorageAccess.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/c76671d99573 part 3 - Rename ContentBlocking to StorageAccessAPIHelper, r=anti-tracking-reviewers,necko-reviewers,dragana,timhuang

Backed out 5 changesets (bug 1765313, bug 1770403) for causing lint failure in tools/lint/rejected-words.yml

Backout link: https://hg.mozilla.org/integration/autoland/rev/ab670f6df4832b577f1298f3a36d5790b06a524f

Push with failures

Failure log

Flags: needinfo?(bvandersloot)

There is a new type of failure that appeared after the backout was done.

Failure line : TEST-UNEXPECTED-FAIL | /storage-access-api/requestStorageAccess.sub.window.html | [top-level-context] document.requestStorageAccess() should be rejected by default with no user gesture - assert_unreached: Should have rejected: document.requestStorageAccess() call without user gesture Reached unreachable code

Failure log

Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2376ca53eb9c part 1 - Remove dead code from ContentBlocking.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/588d54f796a0 part 2 - Move the ShouldAllowAccessFor functions to StorageAccess.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/22153c8641e1 part 3 - Rename ContentBlocking to StorageAccessAPIHelper, r=anti-tracking-reviewers,necko-reviewers,dragana,timhuang

Thanks for the heads up on the test failure. I resolved it by amending a patch further down the stack and resolved the lint error as well.

Flags: needinfo?(bvandersloot)

Backed out 5 changesets (Bug 1765313, Bug 1770403) for causing bc failures on browser_storageAccessPrivilegeAPI.js.
Backout link
Push with failures <--> bc3
Failure Log

Flags: needinfo?(bvandersloot)

The fix for /storage-access-api/requestStorageAccess.sub.window.html caused this failure. I edited D147867 to resolve this.

I also re-tested locally, both browser chrome tests and wpt.

Flags: needinfo?(bvandersloot)
Pushed by bvandersloot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09ca524adf7d part 1 - Remove dead code from ContentBlocking.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/7806f737966d part 2 - Move the ShouldAllowAccessFor functions to StorageAccess.h, r=anti-tracking-reviewers,timhuang https://hg.mozilla.org/integration/autoland/rev/b618f17c8f28 part 3 - Rename ContentBlocking to StorageAccessAPIHelper, r=anti-tracking-reviewers,necko-reviewers,dragana,timhuang
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: