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:
@@ -84,7 +84,8 @@ async function main() {
|
||||
assert.deepEqual(names, firefox ? ['plain', 'partitioned', 'fpi'] : ['plain', 'partitioned']);
|
||||
for (const details of written) assert.equal(details.storeId, defaultStoreId);
|
||||
assert.equal('sameSite' in written[0], false, 'unspecified must omit the attribute');
|
||||
assert.equal(written.find((details) => details.name === 'partitioned').partitionKey.hasCrossSiteAncestor, true);
|
||||
assert.equal(written.find((details) => details.name === 'partitioned').partitionKey.hasCrossSiteAncestor, firefox ? undefined : true,
|
||||
'Firefox 115-140 rejects hasCrossSiteAncestor; Chrome keeps it');
|
||||
if (firefox) {
|
||||
assert.equal(written[0].firstPartyDomain, '');
|
||||
assert.equal(written.find((details) => details.name === 'fpi').firstPartyDomain, 'example.com');
|
||||
|
||||
Reference in New Issue
Block a user