Skip to content

Commit 779ff2f

Browse files
Remove trackerHosts code as currently unused (#371)
1 parent c0e7cde commit 779ff2f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/features/cookie.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ let cookiePolicy = {
1818
}
1919

2020
let loadedPolicyResolve
21-
// Listen for a message from the content script which will configure the policy for this context
22-
const trackerHosts = new Set()
2321

2422
/**
2523
* @param {'ignore' | 'block' | 'restrict'} action
@@ -79,7 +77,6 @@ export default class CookieFeature extends ContentFeature {
7977
cookiePolicy.shouldBlock = !frameExempted && !tabExempted
8078
cookiePolicy.policy = settings.firstPartyCookiePolicy
8179
}
82-
trackerHosts.clear()
8380

8481
// The cookie policy is injected into every frame immediately so that no cookie will
8582
// be missed.
@@ -193,10 +190,4 @@ export default class CookieFeature extends ContentFeature {
193190

194191
loadedPolicyResolve()
195192
}
196-
197-
update (args) {
198-
if (args.trackerDefinition) {
199-
trackerHosts.add(args.hostname)
200-
}
201-
}
202193
}

0 commit comments

Comments
 (0)