mirror of
https://github.com/pvrzz/Portage.git
synced 2026-11-29 05:22:26 +00:00
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:
@@ -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() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Portage",
|
||||
"version": "2.0.1",
|
||||
"version": "2.1.0",
|
||||
"description": "Universal browser data swap. Export bookmarks, history, cookies, tabs and sessions to a portable JSON bundle, then import into any browser running Portage — Firefox to Chrome, or the same browser on a new machine. Also exports your add-on list as a reinstall checklist.",
|
||||
"homepage_url": "https://github.com/pvrzz/Portage/",
|
||||
"browser_specific_settings": {
|
||||
|
||||
Reference in New Issue
Block a user