Open Bug 1731078 Opened 3 years ago

Add xpcshell test to verify that the StartupCache is actually populated

Categories

(WebExtensions :: General, task)

task

Tracking

(Not tracked)

People

(Reporter: robwu, Unassigned)

References

Details

In bug 1728461 I added a mochitest (test_check_startupcache.html in https://phabricator.services.mozilla.com/D125131) that verifies that the startupcache is populated for the mochikit extension.

This logic isn't really specific to the browser (other than the cache potentially being wiped at runtime, which the mochikit extension did), so we can move it to a xpcshell test.

In a xpcshell test, we could also mock the StartupCache internals to really confirm whether the cached data is used, if we want to, e.g. as done in https://searchfox.org/mozilla-central/rev/4d90ff4537330d6b17cb956c0fadf759086d9bb7/toolkit/components/extensions/test/xpcshell/test_ext_permissions_uninstall.js#28-44

You need to log in before you can comment on or make changes to this bug.