Remove StorageDisabledByAntitracking Functions to Simplify StorageAccess helpers
Categories
(Core :: Privacy: Anti-Tracking, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox123 | --- | fixed |
People
(Reporter: bvandersloot, Assigned: bvandersloot)
References
Details
Attachments
(3 files)
Found this as a refactor that will make things a little clearer in the short term before we solve Bug 1765334 by adding a StorageKey.
| Assignee | ||
Comment 1•2 years ago
|
||
I'm considering dropping this if statement entirely because this is only hit when we disable network state partitioning.
According to code coverage, we only see the ""_ns as the result of this ternary in our testing too.
But, if you disable network state partitioning and then block cookies from a given domain, then we would still want to partition network state I suppose, so I'll leave it like this..
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
This makes the single remaining function larger, but makes things much easier to read to my eyes and reuses the branches that exist instead of mirroring them in both functions
Depends on D198034
| Assignee | ||
Comment 3•2 years ago
|
||
Similarly to part 2, this makes one function bigger, but removes a funciton.
IMO the "and then do more stuff" helper call at the end of a function without a clear separation/purpose and no other callsites
mostly makes the code harder to reason about. Especially when that helper is exported in the header so you can't tell at a
glance that there aren't other callers.
Depends on D198035
Comment 5•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f720e27569ad
https://hg.mozilla.org/mozilla-central/rev/1dbd7bc7c9f2
https://hg.mozilla.org/mozilla-central/rev/357d024bdffa
Description
•