mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 11:48:19 +02:00
27 lines
625 B
JavaScript
27 lines
625 B
JavaScript
"use strict";
|
|
|
|
const { SiteDataTestUtils } = ChromeUtils.importESModule(
|
|
"resource://testing-common/SiteDataTestUtils.sys.mjs"
|
|
);
|
|
const { PermissionTestUtils } = ChromeUtils.import(
|
|
"resource://testing-common/PermissionTestUtils.jsm"
|
|
);
|
|
|
|
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}` : ""})`,
|
|
};
|
|
}
|