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:
+4
-2
@@ -254,7 +254,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;
|
||||
}
|
||||
}
|
||||
@@ -421,7 +423,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.0",
|
||||
"version": "2.1.0",
|
||||
"description": "Export bookmarks, history, cookies, tabs, sessions, and reading list to a portable JSON file. Import on any browser.",
|
||||
"homepage_url": "https://github.com/pvrzz/Portage/",
|
||||
"permissions": [
|
||||
|
||||
Reference in New Issue
Block a user