Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: filters being duplicated by preprocessors #4016

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

seia-soto
Copy link
Member

This PR solves the problem that created duplicated entries in the filters engine. The problem was found as scriptlets injected multiple times (more than intended) on YouTube. After then, the fact that those filters had preprocessors revealed. The problem was in updateFromDiff function that pushes preprocessor filters to normal filters diff. The mental model and understanding to the diff object was not clear, so this problem happened.

To prevent similar issues in future, tests and comments are added.

@seia-soto seia-soto requested a review from remusao as a code owner June 10, 2024 09:14
@remusao remusao added the PR: Bug Fix 🐛 Increment patch version when merged label Jun 10, 2024
Co-Authored-By: chrmod <chrmod@ghostery.com>
@chrmod chrmod merged commit ca06138 into ghostery:master Jun 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bug Fix 🐛 Increment patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants