mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-07 19:59:18 +02:00
24 lines
606 B
JavaScript
24 lines
606 B
JavaScript
"use strict";
|
|
|
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
const { SiteDataTestUtils } = ChromeUtils.import(
|
|
"resource://testing-common/SiteDataTestUtils.jsm"
|
|
);
|
|
const { PermissionTestUtils } = ChromeUtils.import(
|
|
"resource://testing-common/PermissionTestUtils.jsm"
|
|
);
|
|
|
|
function run_test() {
|
|
do_get_profile();
|
|
run_next_test();
|
|
}
|
|
|
|
function getOAWithPartitionKey(topLevelBaseDomain, originAttributes = {}) {
|
|
if (!topLevelBaseDomain) {
|
|
return originAttributes;
|
|
}
|
|
return {
|
|
...originAttributes,
|
|
partitionKey: `(https,${topLevelBaseDomain})`,
|
|
};
|
|
}
|