1
0
Fork 0
firefox/dom/simpledb/test/xpcshell/head.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
611 B
JavaScript

/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
add_setup(async function () {
const { setStoragePrefs, clearStoragePrefs } = ChromeUtils.importESModule(
"resource://testing-common/dom/quota/test/modules/StorageUtils.sys.mjs"
);
setStoragePrefs();
const optionalPrefsToSet = [["dom.simpleDB.enabled", true]];
setStoragePrefs(optionalPrefsToSet);
registerCleanupFunction(async function () {
const optionalPrefsToClear = ["dom.simpleDB.enabled"];
clearStoragePrefs(optionalPrefsToClear);
});
do_get_profile();
});