27 lines
637 B
JavaScript
27 lines
637 B
JavaScript
"use strict";
|
|
|
|
const { SiteDataTestUtils } = ChromeUtils.importESModule(
|
|
"resource://testing-common/SiteDataTestUtils.sys.mjs"
|
|
);
|
|
const { PermissionTestUtils } = ChromeUtils.importESModule(
|
|
"resource://testing-common/PermissionTestUtils.sys.mjs"
|
|
);
|
|
|
|
function run_test() {
|
|
do_get_profile();
|
|
run_next_test();
|
|
}
|
|
|
|
function getOAWithPartitionKey(
|
|
{ scheme = "https", topLevelBaseDomain, port = null } = {},
|
|
originAttributes = {}
|
|
) {
|
|
if (!topLevelBaseDomain || !scheme) {
|
|
return originAttributes;
|
|
}
|
|
|
|
return {
|
|
...originAttributes,
|
|
partitionKey: `(${scheme},${topLevelBaseDomain}${port ? `,${port}` : ""})`,
|
|
};
|
|
}
|