抽取cookie清理逻辑为新的第六步

This commit is contained in:
QLHazyCoder
2026-04-17 15:56:19 +08:00
parent b387ebfa91
commit cbe9b1fabf
30 changed files with 630 additions and 603 deletions
+19
View File
@@ -0,0 +1,19 @@
(function attachBackgroundStep6(root, factory) {
root.MultiPageBackgroundStep6 = factory();
})(typeof self !== 'undefined' ? self : globalThis, function createBackgroundStep6Module() {
function createStep6Executor(deps = {}) {
const {
completeStepFromBackground,
runPreStep6CookieCleanup,
} = deps;
async function executeStep6() {
await runPreStep6CookieCleanup();
await completeStepFromBackground(6);
}
return { executeStep6 };
}
return { createStep6Executor };
});