MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / removeCookieDirectly

Function removeCookieDirectly

background.js:5726–5750  ·  view source on GitHub ↗
(cookie)

Source from the content-addressed store, hash-verified

5724}
5725
5726async function removeCookieDirectly(cookie) {
5727 const details = {
5728 url: buildCookieRemovalUrl(cookie),
5729 name: cookie.name,
5730 };
5731
5732 if (cookie.storeId) {
5733 details.storeId = cookie.storeId;
5734 }
5735 if (cookie.partitionKey) {
5736 details.partitionKey = cookie.partitionKey;
5737 }
5738
5739 try {
5740 const result = await chrome.cookies.remove(details);
5741 return Boolean(result);
5742 } catch (err) {
5743 console.warn(LOG_PREFIX, '[removeCookieDirectly] failed', {
5744 domain: cookie?.domain,
5745 name: cookie?.name,
5746 message: getErrorMessage(err),
5747 });
5748 return false;
5749 }
5750}
5751
5752async function runPreStep6CookieCleanup() {
5753 await addLog(

Callers 1

runPreStep6CookieCleanupFunction · 0.85

Calls 2

buildCookieRemovalUrlFunction · 0.85
getErrorMessageFunction · 0.70

Tested by

no test coverage detected