Firefox Now Runs Brave's Ad-Block Engine. Yes, Really.

4 min read 1 source clear_take
├── "Browser-level integration of adblock-rust is a meaningful performance upgrade over extension-based blocking"
│  ├── It's FOSS News (It's FOSS) → read

The article emphasizes that Mozilla integrated the engine at the network stack level, not as an extension. This means blocking happens before requests are dispatched, giving Firefox native-level performance with sub-microsecond per-request matching against 60,000+ filter rules — orders of magnitude faster than JavaScript-based engines.

│  └── top10.dev editorial (top10.dev) → read below

The editorial quantifies the performance gap: 0.2ms vs 20ms of blocking overhead on a 200-request page, noting this is the difference between negligible and noticeable on lower-end devices. The Rust engine's HashMap-backed compiled filter structure fundamentally outperforms content-script-sandbox approaches.

├── "Cross-competitor open-source collaboration is surprising and signals the health of the open-source model"
│  ├── @nreece (Hacker News, 354 pts)

By surfacing this story (354 points, 201 comments), the HN submission highlights the unexpected nature of direct competitors collaborating. Mozilla and Brave compete for the same privacy-conscious users and funding, yet the MIT/Apache-2.0 dual license made this integration possible without any partnership or deal.

│  └── top10.dev editorial (top10.dev) → read below

The editorial frames the community's 'genuine surprise' not at the technology itself — Brave has shipped adblock-rust since 2019 — but at the competitive dynamics. Mozilla and Brave run different engines (Gecko vs Chromium), court the same users, and compete for donation/subscription revenue, making this an unusual case of open-source licensing enabling collaboration between rivals.

└── "This enhances Firefox's tracking protection from curated blocklists to full community filter list support"
  └── top10.dev editorial (top10.dev) → read below

The editorial notes that Firefox's existing Enhanced Tracking Protection relied on a curated disconnect.me-based blocklist approach. With adblock-rust, Firefox can now process full community filter lists including EasyList and regional lists, closing a capability gap that previously required dedicated extensions like uBlock Origin.

What happened

Firefox has shipped Brave's `adblock-rust` engine as part of its content blocking infrastructure. The engine — originally built by Brave Software and open-sourced under the MIT/Apache-2.0 dual license — is a Rust-native implementation of the Adblock Plus filter syntax that compiles filter lists into a compact, serializable format optimized for fast per-request matching.

This isn't Firefox bolting on an extension. Mozilla has integrated the engine at the browser level, meaning it runs in the network stack before requests are dispatched, not as an afterthought in a content script sandbox. The integration supplements Firefox's existing Enhanced Tracking Protection (ETP) system, which historically used a curated disconnect.me-based blocklist approach. With adblock-rust, Firefox gains the ability to process full community filter lists — including EasyList and regional lists — with the kind of throughput that previously required dedicated extensions like uBlock Origin.

The Hacker News discussion (354 points as of this writing) reflects genuine surprise. Not because the technology is novel — Brave has shipped adblock-rust since 2019 — but because Mozilla and Brave are direct competitors in the independent browser space. Both run on different engines (Gecko vs. Chromium), court privacy-conscious users, and compete for the same donation/subscription dollars.

Why it matters

Performance is the first story. adblock-rust's architecture compiles filter rules into a Rust `HashMap`-backed data structure with optimized tokenization. In Brave's own benchmarks, the engine matches requests against 60,000+ filter rules in under 1 microsecond per check on modern hardware. Compare this to JavaScript-based filter engines that typically operate in the 10-100 microsecond range per request. On a page that fires 200 network requests, that's the difference between 0.2ms and 20ms of blocking overhead — negligible vs. noticeable on lower-end devices.

The serialization format matters too. adblock-rust can deserialize a compiled filter set from disk in roughly 50ms, compared to the seconds-scale cold parse that JavaScript engines need to process raw filter list text on startup. For Firefox users, this means content blocking is effectively instant from browser launch.

The open-source dynamics are the second story. Brave released adblock-rust under a permissive dual license specifically to enable this kind of adoption. When your competitor ships your code and it makes the web better for users, that's not a loss — it's leverage. Brave's ad-blocking technology now runs on two browser engines (Chromium via Brave, Gecko via Firefox), establishing it as a de facto standard for high-performance filter list processing.

This is what permissive open-source licensing looks like when it actually works: a competitor adopted your code, credited it, and the result makes the entire ecosystem stronger. The cynical take — that Mozilla is free-riding on Brave's R&D — misses the point. Brave benefits from Firefox's QA, bug reports, and potential upstream contributions to adblock-rust. The codebase gets battle-tested on a second engine, which surfaces bugs that Brave's Chromium-only testing would miss.

The Chrome contrast is the third story. Google's Manifest V3 transition has systematically weakened extension-based ad blocking in Chrome by limiting the `webRequest` API in favor of the more restrictive `declarativeNetRequest`. uBlock Origin's developer, Raymond Hill, has been vocal about MV3's limitations — specifically the 30,000 static rule cap and the inability to do complex redirect-based filtering.

Firefox adopting browser-level ad blocking while Chrome restricts extension-level ad blocking is not a coincidence. It's competitive positioning. Mozilla is betting that built-in, high-performance content blocking is a feature users will switch browsers for — and they're probably right. The uBlock Origin user base alone represents millions of technically sophisticated users who care deeply about this capability.

What this means for your stack

If you build web applications, Firefox's improved content blocking changes your testing matrix. More requests will be blocked by default for a larger share of Firefox users. This has specific implications:

Analytics and tracking. If you rely on third-party analytics scripts that appear on common filter lists, expect higher block rates from Firefox users. This was already true for Brave users, but Firefox's market share (~3-4% desktop globally, higher in developer demographics) makes the signal louder. Audit which of your third-party scripts appear on EasyList and EasyPrivacy — if they're on those lists, assume they don't load for 15-20% of your developer-audience traffic.

Ad-supported revenue. If your business model depends on display advertising, the browser with the best developer mindshare just got meaningfully better at blocking ads. First-party ad serving (self-hosted, same-origin) remains unaffected by filter-list-based blocking, which is one more reason the industry is moving in that direction.

Performance baselines. Here's the counterintuitive one: Firefox users with aggressive content blocking will experience your site *faster* than your synthetic benchmarks suggest, because 30-50% fewer network requests actually fire. Your Lighthouse score in a vanilla Chrome profile is your worst case, not your typical case, for blocked-browser users. Design your performance budgets accordingly.

For extension developers, the integration doesn't kill uBlock Origin on Firefox — Mozilla has committed to maintaining full MV2 extension support, and uBlock Origin's cosmetic filtering and advanced features go well beyond what adblock-rust handles at the network layer. But for users who never installed an ad blocker, the gap between "default Firefox" and "Firefox + uBlock Origin" just narrowed substantially.

Looking ahead

The browser ad-blocking landscape is splitting into two clear camps. On one side: Chrome (and by extension, Edge and other Chromium skins) restricting what extensions can do, pushing users toward Google's preferred model where ads are filtered by the ad network, not the client. On the other: Firefox and Brave building blocking into the browser itself, treating it as a core feature rather than an extension affordance. Safari sits somewhere in between with its Intelligent Tracking Prevention. For developers building for the open web, the practical takeaway is simple: design for a world where a meaningful chunk of your audience blocks aggressively by default, and treat that as a feature of a healthy web, not a bug to work around.

Hacker News 354 pts 201 comments

Firefox Has Integrated Brave's Adblock Engine

→ read on Hacker News
evilpie · Hacker News

> The Firefox team is experimenting with ways to improve the built-in Enhanced Tracking Protection feature in Firefox. This is one of the libraries we're going to experiment with.> - We are not, and have no plans to abandon MV2 extensions. This will ensure certain types of add-ons, like a

devsda · Hacker News

I hope this isn't a precursor to removing support for other AdBlock addons(MV2) citing native availability of an AdBlock engine and then gradually shift to acceptable ads etc.

Steve6 · Hacker News

I migrated from Firefox to Brave years ago, and it's been incredible. It's easy to turn off the crypto stuff and turn on more advanced privacy protection. Then it's just a fast browser with awesome adblocking.My favorite recent feature has been Brave Scriptlets, which are just little

gbil · Hacker News

If this means that they release a iOS version with the same Adblock features as brave then I’m sold. I use essentially all OSs and I want a browser with basic features like adblocking/custom filters on all the platforms and currently Firefox fails this on iOS devices. Still I believe the Firefo

MrAlex94 · Hacker News

I think people are reading into this too much - I don’t think Mozilla would ever implement an actual full spectrum ad blocker (although who knows with the new direction Firefox is headed), this will likely be used as an improvement/replacement for the current tracking protection implementation.

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.