Source code
Revision control
Copy as Markdown
Other Tools
/**
* Any copyright is dedicated to the Public Domain.
*/
loadScript("dom/quota/test/common/content.js");
async function enableStorageTesting() {
let prefsToSet = [
["dom.quotaManager.testing", true],
["dom.simpleDB.enabled", true],
];
if (SpecialPowers.Services.appinfo.OS === "WINNT") {
prefsToSet.push(["dom.quotaManager.useDOSDevicePathSyntax", true]);
}
await SpecialPowers.pushPrefEnv({ set: prefsToSet });
}