Fix long delays when updating filter lists #39283
Labels
OS/iOS
Fixes related to iOS browser functionality
privacy
QA Pass - iPhone
QA/Yes
release-notes/exclude
Milestone
Description
When updating filter lists, there may be a long delay before they are ready (over 1 minute).
It is actually caused by an error on the custom filter list screen you can see in the following screenshot (so both will be fixed):
![image](https://private-user-images.githubusercontent.com/909331/346246582-ab2d9de5-0ed2-4f03-8fa3-1aded1e6e88c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1NjAwOTIsIm5iZiI6MTcyNTU1OTc5MiwicGF0aCI6Ii85MDkzMzEvMzQ2MjQ2NTgyLWFiMmQ5ZGU1LTBlZDItNGYwMy04ZmEzLTFhZGVkMWU2ZTg4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxODA5NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MzUyMjFkZGYyOGRmM2Y1MWNiZWIyNDY4NGZmMjVhYmVmMDE0NzIwNWRlNDdkOTIzZTNiMzZmMDcyYTk1OTZlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.diuy4093fbufZZQdbOzxmtaf_yoijWwpefTn8a5ygM0)
The error causes the engines to not rebuild. Only after delayed task that takes 60s (which forces a necessary rebuild despite some filter list errors) updates the engines.
Steps to reproduce
Actual result
Changes will take about a minute to go into effect
Expected result
Changes should be nearly instant (about 5 seconds)
Reproduces how often
Easily reproduced
Brave version
1.69
Device/iOS version
Iphone 14
Affected browser versions
Reproducibility
Miscellaneous information
No response
The text was updated successfully, but these errors were encountered: