mirror of
https://github.com/pvrzz/Portage.git
synced 2026-11-29 05:22:26 +00:00
test: verify profile storage import in isolated Chrome 156
This commit is contained in:
+3
-1
@@ -243,7 +243,9 @@ async function importCookies(items, onProg) {
|
||||
if (!c.session && Number.isFinite(c.expirationDate)) d.expirationDate = c.expirationDate;
|
||||
if (targetStore?.id) d.storeId = targetStore.id;
|
||||
if (c.partitionKey?.topLevelSite) d.partitionKey = { topLevelSite: c.partitionKey.topLevelSite };
|
||||
if (c.firstPartyDomain && IS_FIREFOX) d.firstPartyDomain = c.firstPartyDomain;
|
||||
// Firefox requires firstPartyDomain even for the default (empty) domain
|
||||
// when First-Party Isolation is enabled.
|
||||
if (IS_FIREFOX) d.firstPartyDomain = c.firstPartyDomain || "";
|
||||
if (await api.cookies.set(d)) imported++; else skipped++;
|
||||
} catch { skipped++; }
|
||||
if (i % 100 === 0) { onProg(i, total); await tick(); }
|
||||
|
||||
Reference in New Issue
Block a user