Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/*
Any copyright is dedicated to the Public Domain.
*/
async function testSteps() {
const data = {
key: "foo",
value: "",
};
info("Setting pref");
Services.prefs.setBoolPref("dom.storage.next_gen", false);
info("Getting storage");
const storage = getLocalStorage();
info("Adding data");
storage.setItem(data.key, data.value);
}