Firefox Now Ships Brave's Ad-Block Engine — and That's a Big Deal

5 min read 1 source clear_take
├── "This is open source working exactly as intended between competitors — and it almost never happens"
│  ├── nreece (Hacker News) → read

By surfacing this story (354 points, 201 comments), the submission highlights the remarkable nature of a major browser adopting a core privacy component built by a direct competitor. The community response reflects widespread recognition that cross-competitor code sharing at this level is rare despite being the open-source ideal.

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

The editorial emphasizes that this is 'the first time a major browser has adopted a core privacy component built by a direct competitor,' and that developers instinctively recognize this is how open source is supposed to work even though it almost never happens between rivals. The MPL 2.0 licensing alignment made the integration legally frictionless.

├── "Native engine integration delivers performance gains that extensions structurally cannot match"
│  └── top10.dev editorial (top10.dev) → read below

The editorial argues that performance is 'the real story,' citing sub-microsecond per-request filter matching from adblock-rust's optimized hash maps and data structures — orders of magnitude faster than JavaScript-based extension approaches. A natively integrated engine bypasses extension API constraints entirely, especially Manifest V3's declarativeNetRequest limitations that hobble Chromium-based extension blockers.

├── "Extension-based blockers like uBlock Origin remain superior in flexibility despite the speed gap"
│  └── top10.dev editorial (top10.dev) → read below

While making the case for native integration, the editorial explicitly acknowledges that uBlock Origin is 'excellent software' and remains more flexible than adblock-rust. The tradeoff is clearly framed: the native engine wins on raw speed, but flexibility has real value — suggesting the two approaches are complementary rather than one replacing the other.

└── "Rust as a language choice validates Mozilla's long-term systems programming bet"
  └── It's FOSS News (It's FOSS) → read

The source article highlights the Rust foundation of adblock-rust as a key detail. Mozilla originally created Rust and has been progressively integrating Rust components into Firefox — adopting a Rust-based library from another browser reinforces the thesis that Rust is the right language for performance-critical browser infrastructure.

What happened

Mozilla has shipped Brave's `adblock-rust` engine as part of Firefox's built-in content blocking stack. The Rust-based library — originally developed by Brave Software for its own Chromium-based browser — now powers portions of Firefox's Enhanced Tracking Protection (ETP), handling filter list parsing and network request matching at native speed.

This is the first time a major browser has adopted a core privacy component built by a direct competitor. The integration pulls in Brave's open-source engine (licensed under MPL 2.0, conveniently the same license as Firefox itself) to replace what was previously a slower, more limited content blocking implementation. The move wasn't sudden — Bugzilla discussions and Mozilla's source tree show iterative work over months — but the formal shipping marks a decisive architectural choice.

The Hacker News thread scoring 354 points reflects something developers instinctively recognize: this is how open source is *supposed* to work, and it almost never does between competitors.

Why it matters

### Performance is the real story

Brave's `adblock-rust` is purpose-built for one job: matching network requests against filter rules as fast as possible. The engine compiles filter lists (EasyList, EasyPrivacy, uBlock Origin filters, regional lists) into an optimized internal representation using a combination of hash maps and specialized data structures. In Brave's own benchmarks, the engine processes filter matching in sub-microsecond time per request — orders of magnitude faster than the JavaScript-based approach used by browser extensions like uBlock Origin.

To be clear: uBlock Origin is excellent software and remains more *flexible* than `adblock-rust`. But flexibility has a cost. Extension-based blockers must operate within the browser's extension API constraints (especially Manifest V3's `declarativeNetRequest` limitations in Chromium), while a natively integrated engine bypasses those constraints entirely. By embedding `adblock-rust` directly, Firefox gets blocking performance that no extension can match, regardless of the extension API.

This matters for page load times. Every network request Firefox handles now passes through an optimized Rust matching pipeline instead of a less specialized code path. On complex pages with 200+ third-party requests, the difference between microsecond and millisecond matching per request adds up to visible improvements.

### The open-source collaboration angle

Brave and Mozilla are competitors. Brave runs on Chromium; Firefox runs on Gecko. They compete for privacy-conscious users. And yet Brave published `adblock-rust` under an open license, and Mozilla chose to adopt it rather than building an equivalent from scratch.

This is a case study in what open-source economics actually looks like when it works: Brave gets credibility and ecosystem adoption for their engine, Mozilla gets a battle-tested component without years of development, and users of both browsers benefit. The cynical read — that Mozilla couldn't afford to build this themselves given their budget constraints — doesn't diminish the outcome. Good engineering decisions made under resource constraints are still good engineering decisions.

The precedent matters too. Browser vendors have historically treated their engines as competitive moats. WebKit and Blink share ancestry but diverged specifically because Google wanted independent control. Mozilla has fiercely maintained Gecko's independence. Adopting a competitor's component — even a well-bounded one — represents a philosophical shift toward "best available component" thinking over "not invented here" purity.

### What this means for the ad blocking landscape

The browser ad-blocking wars have gone through distinct phases. Phase one was extensions (Adblock Plus, uBlock Origin). Phase two was browsers adding basic tracking protection (Safari's ITP, Firefox's ETP, Brave's Shields). Phase three — what we're entering now — is browsers shipping industrial-grade blocking engines as first-class features.

With Firefox and Brave both running the same underlying engine, and Apple's Safari continuing to tighten its Intelligent Tracking Prevention, ad blocking is now a default capability in every non-Chromium major browser. Google's Manifest V3 restrictions on Chrome extension capabilities look increasingly like the outlier position, not the standard one.

For the ~65% of web traffic still on Chrome, this creates an interesting dynamic. Chrome users who want equivalent blocking capability must rely on extensions operating under increasingly restrictive APIs. Firefox and Brave users get it built-in, at native performance, with no configuration required.

What this means for your stack

If you're building web applications that rely on ad revenue, the practical implication is straightforward: browser-native ad blocking at this performance tier cannot be reliably circumvented. Server-side ad injection, obfuscated tracker domains, first-party data collection endpoints disguised as application APIs — filter lists adapt to all of these, and the engine processes updates efficiently.

The sustainable path forward is explicit consent and value exchange. Paywalls, voluntary subscriptions, and clearly disclosed first-party data collection are the models that survive browser-native blocking. Anti-adblock walls that detect and nag users are increasingly brittle as detection becomes harder against native implementations (no extension fingerprint to detect).

For developers working on privacy tooling, `adblock-rust` is worth examining directly. The library is well-documented, actively maintained, and now has two major browsers as consumers — which means it's not going anywhere. If you're building network-level filtering, DNS-based blocking, or privacy proxies, the filter list parsing and matching logic is available as a standalone Rust crate. The fact that it's now battle-tested across two independent browser engines makes it the de facto standard for programmatic filter list processing.

If you maintain a browser extension that does content blocking, the calculus has changed. Extensions still offer flexibility (custom rules, element hiding, scriptlet injection) that native engines don't replicate. But basic network-request blocking — the bread and butter — is now handled better by the browser itself. The extension value proposition shifts toward power-user customization and domain-specific rules rather than baseline blocking.

Looking ahead

The integration raises an obvious question: what other browser components are ripe for cross-vendor sharing? Both Mozilla and Brave invest heavily in anti-fingerprinting, cookie isolation, and DNS-over-HTTPS. If the `adblock-rust` collaboration works well — and early indications from the community response suggest it will — it creates a template for future component sharing that could accelerate privacy features across the non-Chrome browser ecosystem. The competitive moat for browsers is shifting from engine internals to UX, ecosystem, and trust. That's probably healthier for everyone.

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.