Open
Description
https://community.brave.com/t/ads-and-trackers-blockers-breaks-all-websites/524842 reported widespread webcompat problems. This was due to a corrupted cookie list. We should be validating filter lists after downloading them. List of things to check (in priority order):
- If there is a checksum on an adblock list, verify the checksum at crx build time in a place similar to https://github.com/brave/adblock-resources/blob/master/index.js#L7
- File size being too small
- Check the MIME/file type (should be a text file)
- Generate a warning if the file has invalid rules sent out via Sentry
- Check for lines which are too long (the whole file should not be in one line for example)
- Check file diff sizes before publishing (shouldn’t be too large)
- Check against “known-good” sites before publishing (nothing should be blocked): https://github.com/brave/devops/issues/11117
In all these cases, we should not publish a new version of the list/component and send a Sentry alert like how it's done already in the code: https://github.com/brave/brave-core-crx-packager/blob/master/scripts/generateAdBlockRustDataFiles.js#L101
Metadata
Assignees
Labels
No labels