Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/**
* Any copyright is dedicated to the Public Domain.
*/
const { PrincipalUtils } = ChromeUtils.importESModule(
);
const { TestUtils } = ChromeUtils.importESModule(
);
add_task(async function testSteps() {
const principal = PrincipalUtils.createPrincipal("https://example.com");
info("Starting database opening");
const openPromise = Services.domStorageManager.preload(principal);
info("Waiting for database work to start");
await TestUtils.topicObserved("LocalStorage::DatabaseWorkStarted");
info("Waiting for database to finish opening");
await openPromise;
});