{
  "id": 22455419,
  "title": "Rebuilding Cookie AutoDelete for Manifest V3: Ephemeral Service Workers, Cookie Jars, and CHIPS",
  "url": "https://urgent.news/2026/11/28/rebuilding-cookie-autodelete-for-manifest-v3-ephemeral-service",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-28T21:57:12.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/larkandlever/rebuilding-cookie-autodelete-for-manifest-v3-ephemeral-service-workers-cookie-jars-and-chips-3f1l"
  },
  "original_language": null,
  "account": "Google ended Manifest V2 support in Chrome, causing Cookie AutoDelete to be removed from many users. The popular MV2 cookie cleaners used persistent background pages to manage cookies, which no longer function in Manifest V3 Service Workers that can be terminated quickly. The project Lark Cookie Sweep was created to provide a replacement for Chrome, Edge, and Firefox.\n\nFive main challenges were faced while building Lark Cookie Sweep.\n\n1. Surviving Service Worker Suspension: Users need a grace period after closing a tab before accidental closes delete their session. setTimeout and chrome.alarms both have their issues in MV3, so a hybrid approach is used. setTimeout is used when the worker is still active, while chrome.alarms acts as a backup if the worker suspends before the setTimeout fires.\n\n2. Cookie-Jar Isolation: Separating cookie jars for incognito windows and Firefox Multi-Account Containers is crucial. Raw cookie stores are created based on the tab's ID, and rule scopes are normalized to \"default\" for both normal and incognito stores.\n\n3. Handling Partitioned (CHIPS) Cookies: Modern browsers store third-party cookies with a partitionKey. Naive cleaners may miss partitioned cookies, so getAll() is used with and without partitionKey to catch both types. Deleting a partitioned cookie requires forwarding the exact partitionKey object, and partitioned cookies are protected like first-party cookies of the open tab if the domain is open in another tab.\n\n4. Compatibility with Legacy Expressions.json Backups: Users want an easy way to import whitelisted domains when switching extensions. Cookie AutoDelete exports a map with storeId, expression, listType, and cookieNames. When importing, leading www. (and www2.) is removed from both rule and hostname before matching.",
  "summary": "When Google completed the Manifest V2 shutdown in Chrome, one of the hardest-hit privacy tools was Cookie AutoDelete (200,000+ Chrome users before removal; 160,000+ Firefox users still running a 2022 build). Classic MV2 cookie cleaners relied on a persistent background page holding Redux state in memory, open-tab maps, and long-lived setTimeout queues. None of that survives a Manifest V3 Service…",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}