Firefox Quietly Integrates Brave’s Adblock Engine: A Step Toward Native Content Blocking
Mozilla has quietly integrated Brave’s adblock-rust engine into Firefox 149, marking a significant but understated shift in the browser’s approach to privacy and content blocking. The change, implemented via Bugzilla Bug 2013888, adds a prototype content-blocking engine based on Brave’s open-source adblock-rust project, yet it went entirely unmentioned in the official release notes.
This integration means Firefox now includes, for the first time, a native ad and tracker filtering engine within its core codebase, paving the way for potentially faster, more efficient blocking without relying solely on extensions like uBlock Origin.
How the Integration Works
The adblock-rust engine, written in the memory-safe, high-performance Rust language and licensed under MPL-2.0, is now embedded in Firefox’s source tree under third_party/rust/adblock. It operates alongside Firefox’s existing URL classifier system but remains disabled by default and lacks a user interface or built-in filter lists.
Mozilla engineer Benjamin VanderSloot led the integration, vendoring the Brave crate and connecting it through a ContentClassifierService with C++ wrappers. The engine supports:
- Network filtering
- Cosmetic filtering (hiding page elements)
- Scriptlet injection
- Resource replacement
- Hosts syntax
- Full compatibility with uBlock Origin filter list syntax
Despite its robust capabilities, this is purely experimental. Users won’t see any changes unless they manually enable it.
How to Test the New Engine
Tech-savvy users can activate the prototype in Firefox 149 or later via about:config:
- Navigate to
about:configand accept the warning. - Enable protection mode:
privacy.trackingprotection.content.protection.enabled=true - Add filter lists (e.g., EasyList, EasyPrivacy and Fanboy's Annoyance):
privacy.trackingprotection.content.protection.test_list_urls=https://easylist.to/easylist/easylist.txt|https://easylist.to/easylist/easyprivacy.txt|https://secure.fanboy.co.nz/fanboy-annoyance.txt
After restarting, the engine will begin blocking ads and trackers based on the loaded lists. For testing, disable Firefox’s Enhanced Tracking Protection on the target site to isolate the engine’s behavior.
Two Modes: Protection and Annotation
The implementation includes two distinct modes:
- Protection Mode: Actively blocks network requests (ads, trackers).
- Annotation Mode: Tags requests without blocking, likely for telemetry or future UI indicators.
Toggles exist for both:
privacy.trackingprotection.content.annotation.enabled- Separate
test_list_urlsprefs for each mode
This dual approach suggests Mozilla is exploring how to balance privacy, performance, and transparency.
Why This Matters
Brave’s adblock-rust engine is already proven:
- Reduced memory usage by 75%
- Built with FlatBuffers for zero-copy data access
- Immune to Manifest V3 limitations affecting Chromium ad blockers
By integrating it, Firefox gains a native, high-performance alternative to extension-based blockers, potentially improving speed, battery life, and security, especially on low-end devices.
Forks like Waterfox have already committed to building full ad-blocking features on top of this shared foundation.
The Road Ahead
While this is not yet a consumer-ready feature, it signals Mozilla’s intent to enhance built-in content blocking. Future versions may introduce:
- A user-friendly settings toggle
- Default filter lists
- Integration with tracking parameter stripping (currently missing)
- Performance optimizations for mobile
For now, it remains a foundational step, but one that could reshape Firefox’s privacy capabilities in the years to come.
“Pretty exciting to see them finally start taking ad & tracker blocking seriously,” said Shivan Kaul Sahib, Brave’s VP of Privacy and Security. “It’s clearly still an experiment… but a very promising one.” source