blob: 3f011e32f4c611757e10293aeac6588672de8882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
import { getUsageForOrigin } from "/tests/dom/quota/test/modules/StorageUtils.js";
export const Utils = {
async getCachedOriginUsage() {
const principal = SpecialPowers.wrap(document).nodePrincipal;
const result = await getUsageForOrigin(principal, true);
return result.usage;
},
};
|