Release 2.1.0: bump versions and keep Firefox partitioned imports working

Bump Chrome (2.0.0) and Firefox (2.0.1) to 2.1.0 for the store uploads,
and update the bundle generator string to match.

Firefox's cookies schema in 115, 128 and 140 ESR has no
partitionKey.hasCrossSiteAncestor and rejects unknown properties, so
passing it made Firefox skip every partitioned cookie imported from a
Chrome bundle. Only send it to Chrome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Christian
2026-10-24 04:51:09 -04:00
parent ef6b6d70af
commit 429b0f20fc
5 changed files with 12 additions and 7 deletions
+4 -2
View File
@@ -257,7 +257,9 @@ async function importCookies(items, onProg) {
d.partitionKey = { topLevelSite: c.partitionKey.topLevelSite };
// The ancestor bit changes which embedding contexts can read it;
// dropping it would move third-party cookies between partitions.
if (typeof c.partitionKey.hasCrossSiteAncestor === "boolean") {
// Firefox's schema (115-140 ESR) has no hasCrossSiteAncestor and
// rejects unknown properties, so only Chrome gets it.
if (!IS_FIREFOX && typeof c.partitionKey.hasCrossSiteAncestor === "boolean") {
d.partitionKey.hasCrossSiteAncestor = c.partitionKey.hasCrossSiteAncestor;
}
}
@@ -424,7 +426,7 @@ function buildBundle() {
const st = exState[id];
if (st.selected && st.data != null) { data[id] = st.data; counts[id] = st.count; }
}
return { portage: { format: "portage-bundle", version: 1, source: SOURCE, generator: `Portage ${SOURCE_LABEL} 2.0.0`, exportedAt: new Date().toISOString(), userAgent: navigator.userAgent }, meta: { counts }, data };
return { portage: { format: "portage-bundle", version: 1, source: SOURCE, generator: `Portage ${SOURCE_LABEL} 2.1.0`, exportedAt: new Date().toISOString(), userAgent: navigator.userAgent }, meta: { counts }, data };
}
function updateExportTotals() {