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

Refactor FXIOS-10096 [WIP] Content blocking: cleanup, refactors + support for custom JSON lists #22130

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

mattreaganmozilla
Copy link
Collaborator

📜 Tickets

Jira ticket

💡 Description

Clean-up and refactors to our content blocking code. Primarily this is for improvements to readability and performance but it also adds support for custom-loading content lists; right now this feature is entirely for developer convenience and has no effect for end users, but it will allow us to test custom content blocker lists more easily in the app moving forward.

Please note: all of this code is (to some extent) an ongoing WIP as we are currently exploring improvements to our ad-blocking. Additional changes will likely be forthcoming.

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@mattreaganmozilla mattreaganmozilla requested a review from a team as a code owner September 20, 2024 23:12
@mattreaganmozilla mattreaganmozilla requested review from thatswinnie, OrlaM and nbhasin2 and removed request for thatswinnie September 20, 2024 23:12
Copy link
Contributor

@thatswinnie thatswinnie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to add unit tests for the ad blocker?

firefox-ios/Client/ContentBlocker/ContentBlocker.swift Outdated Show resolved Hide resolved
firefox-ios/Client/ContentBlocker/ContentBlocker.swift Outdated Show resolved Hide resolved
@mattreaganmozilla
Copy link
Collaborator Author

Would it be possible to add unit tests for the ad blocker?

@thatswinnie Yes that's definitely on the radar, though I think it will likely be revisited after we have a more concrete plan for the ad-blocking updates.

@mattreaganmozilla mattreaganmozilla merged commit a6239d1 into mozilla-mobile:main Oct 1, 2024
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants