修复设置自动保存与标签清理边界

This commit is contained in:
QLHazyCoder
2026-05-20 05:15:56 +08:00
119 changed files with 24116 additions and 3966 deletions
@@ -28,6 +28,17 @@ test('step 1 cookie cleanup queries target domains and skips browsingData sweep
{ domain: '.chatgpt.com', path: '/', name: 'session', storeId: 'store-a' },
];
}
if (query?.domain === 'openai.com') {
return [
{
domain: '.openai.com',
path: '/',
name: 'shared',
storeId: 'store-a',
partitionKey: { topLevelSite: 'https://chatgpt.com' },
},
];
}
return [];
},
remove: async (details) => {
@@ -63,6 +74,12 @@ test('step 1 cookie cleanup queries target domains and skips browsingData sweep
name: 'session',
storeId: 'store-a',
},
{
url: 'https://openai.com/',
name: 'shared',
storeId: 'store-a',
partitionKey: { topLevelSite: 'https://chatgpt.com' },
},
]);
assert.deepStrictEqual(events.browsingDataCalls, []);
assert.deepStrictEqual(events.openedSteps, [1]);