Closed Bug 1921917 Opened 2 years ago Closed 2 years ago

Create startup pref to enable all cache domains

Categories

(Core :: Disability Access APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: nlapre, Assigned: nlapre)

References

Details

Attachments

(1 external file)

We need a way to turn on all cache domains at startup for tests. Bug 1910804 shows us how fuzzing tests can be erroneously "solved" by avoiding setting all cache domains. We should add a pref, set only at startup, that allows our tests to specify that all cache domains should be set. I think a bool pref would do, especially since cache domain bitmaps are uint64_t, and prefs only support a max size of uint32_t.

This revision adds a pref, read only on startup, that enables all cache domains.
By default, cache domains are only enabled as-needed. This pref is uesful for
test environments, such as fuzzing.

cc :tsmith this is the work to add the pref per your comment here.

Thanks for the cc, should this pref always be true when fuzzing a11y or should we sometimes set it to false?

Yup, should always be true when fuzzing. Having it set to false means that we'd exercise a strict subset of true code paths, so I think we always want it true. Thank you!

Pushed by nlapre@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3ba1f9c55464 Create startup pref to enable all cache domains, r=eeejay
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Blocks: 2021210
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: