修复设置自动保存与标签清理边界
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user