Skip to content

Commit

Permalink
Remove exclude from audits exclusion reason. (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
amovar18 authored May 5, 2024
1 parent d9c0a35 commit fc3b0c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/extension/src/serviceWorker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,18 @@ chrome.debugger.onEvent.addListener((source, method, params) => {
return;
}
try {
const modifiedCookieExclusionReasons = cookieExclusionReasons.map(
(reason) => {
if (reason.toLowerCase().startsWith('exclude')) {
return reason.substring(7) as Protocol.Network.CookieBlockedReason;
}
return reason as Protocol.Network.CookieBlockedReason;
}
);

syncCookieStore?.addCookieExclusionWarningReason(
cookie?.name + domainToUse + cookie?.path,
cookieExclusionReasons,
modifiedCookieExclusionReasons,
cookieWarningReasons,
source.tabId
);
Expand Down

0 comments on commit fc3b0c6

Please sign in to comment.