Native Ad Blocker - Feedback
[!CAUTION] Please remember this is a feature preview in testing, so there will be bugs and issues! Don't expect the world just yet.
Waterfox now includes a native, built-in content blocker. This issue is so you can provide feedback on this test build before it goes out more widely.
How to Enable
- Navigate to
about:config - Filter for
waterfox.blocker - Toggle
waterfox.blocker.ui.enabledtotrue - Toggle
waterfox.blocker.enabledtotrue - A widget will appear in the browser UI, between the address bar and the menu button.
about:preferences#privacyalso contains various settings
Architecture Overview
You can skip this bit if you aren't interested (I won't be offended) - it's here for the curious.
The blocker is built into the browser engine itself rather than running as a WebExtension. This gives it access to Gecko internals that extensions simply cannot reach.
Engine
The core is adblock-rs, Brave's Rust adblock engine. I started development back in January, and by happy coincidence Mozilla did a better job of integrating the crate in Bug 2013888, so I could piggyback off of that work.
It's exposed to the browser through a few layers:
Rust FFI → C++ XPCOM wrapper → JS service
The C++ layer (WaterfoxBlockerXPCOM) bridges the Rust engine into Gecko's component system. The JS service (WaterfoxBlockerService) owns the lifecycle: loading filter lists, managing the engine, and making blocking decisions.
Request Interception
The blocker intercepts requests at multiple points in Gecko's loading pipeline, following the same patterns Firefox's own Tracking Protection uses (nsChannelClassifier):
-
nsIContentPolicy(content policy): A native C++ content policy registered in thecontent-policycategory. Gecko consults this before every resource load, including loads served from internal caches (image cache, prefetch cache). This is the primary blocking path for subresources like images, scripts, stylesheets, and fonts. -
http-on-modify-request(network observer): Handles top-level document blocking with a redirect to a blocked page (which includes a "Load Anyway" bypass option), and also catches live network requests as a secondary enforcement layer. -
http-on-examine-response(response observer): InjectsContent-Security-Policydirectives from adblock-rs$csprules into response headers for document and subdocument contexts.
Why This Matters vs. WebExtensions
This is the important bit, as one advantage is performance (albeit there may be negligible differences in real life) - WebExtensions use the webRequest API, which only sees requests that pass through Gecko's network layer. Resources served from internal caches are completely invisible to extensions. Because the blocker uses native nsIContentPolicy integration, it sees every load regardless of cache state.
There are a few other advantages worth noting: The engine deserialises from an on disk cache synchronously at startup, so it's ready before the first request arrives, there's no race window where ads slip through while an extension is still initialising, it runs in-process with direct Rust FFI calls, so there's none of the IPC overhead you get with WebExtension content scripts talking to a background page and because it can modify response headers directly, CSP injection works properly, which the webRequest API doesn't permit under Manifest V3.
Cosmetic Filtering
A JSWindowActor pair (WaterfoxBlockerParent / WaterfoxBlockerChild) handles cosmetic filtering in content processes, injecting element-hiding CSS selectors and running scriptlets. It's similar to how uBlock Origin operates, but through Gecko's native actor system rather than extension content scripts.
Filter Lists
The blocker ships with bundled filter lists (so it works offline out of the box) and fetches updates on a 7-day cycle. Default lists include:
- Core: EasyList, EasyPrivacy, uBlock Origin filters/unbreak/quick-fixes
- Privacy: uBlock Origin Privacy, AdGuard Tracking Protection, Peter Lowe's list
- Annoyances: EasyList Cookie, uBlock Origin cookie annoyances
- Regional: Auto-enabled based on locale (30+ language-specific lists)
- Optional: Fanboy's Annoyances, Social, Anti-Newsletter, Anti-Chat Apps, Mobile Notifications
Lists can be managed in about:preferences#privacy under the content blocker settings.
How to Test
Basic blocking
- Enable the blocker
- Visit https://adblock-tester.com/ - should score 100/100
- Close the browser, reopen (session restore) - should still reach 100/100 (this was a PITA to get working without a hard refresh of the page after restoring!)
Site exceptions
- Click the ad block icon in the toolbar
- Toggle blocking off for the current site
- Reload - ads should appear
- Toggle back on - ads should be blocked again
Search partner bypass
- Search via www.startpage.com - sponsored search results should not be blocked (configurable via
waterfox.blocker.allowSearchPartnerAds)
Blocked page (top-level document blocking)
- If a top-level document is blocked, you should see a blocked page with "Go Back" and "Load Anyway" options
Extension conflict detection
- If you have an existing ad blocker extension installed (uBlock Origin, AdBlock Plus, etc.), a spotlight dialog should appear offering to let you review your setup
Test the spotlight modal manually
Set devtools.chrome.enabled to true in about:config, then run this in the Browser Console (Ctrl+Shift+J / Cmd+Shift+J):
(async () => {
const { Spotlight } = ChromeUtils.importESModule("resource:///modules/asrouter/Spotlight.sys.mjs");
const { OnboardingMessageProvider } = ChromeUtils.importESModule("resource:///modules/asrouter/OnboardingMessageProvider.sys.mjs");
const msg = await OnboardingMessageProvider.getUpgradeMessage();
msg.id = "WF_BLOCKER_TEST_" + Date.now();
msg.content.id = msg.id;
msg.content.modal = "tab";
const screen = msg.content.screens.find(s => s.id === "UPGRADE_SET_DEFAULT") || msg.content.screens[0];
screen.content.title = { raw: "Waterfox now includes adblocking" };
screen.content.subtitle = { raw: "We noticed you have an adblocker installed. Waterfox now has a native, built-in adblocker. Using it helps support Waterfox, but as always it's your choice." };
screen.content.primary_button = { label: { raw: "No thanks, keep my setup" }, action: { navigate: true } };
screen.content.secondary_button = { label: { raw: "Review ad blocking settings" }, action: { type: "OPEN_PREFERENCES_PAGE", data: { category: "panePrivacy" }, navigate: true }, has_arrow_icon: true };
msg.content.screens = [screen];
await Spotlight.showSpotlightDialog(gBrowser.selectedBrowser, msg);
})();
Relevant about:config preferences
| Preference | Default | Description |
|---|---|---|
waterfox.blocker.enabled |
false |
Master toggle |
waterfox.blocker.ui.enabled |
false |
Show toolbar button |
waterfox.blocker.showBadge |
true |
Blocked count badge on toolbar icon |
waterfox.blocker.allowSearchPartnerAds |
true |
Exempt search partner results |
waterfox.blocker.siteExceptions |
"[]" |
JSON array of excepted domains |
waterfox.blocker.filterListUrls |
"" |
Custom filter list URLs |
waterfox.blocker.enabledLists |
"{}" |
Override which lists are enabled |
What to Report
If something's broken, let me know. URLs help enormously. In particular:
- Sites that break when blocking is enabled
- Ads that aren't being blocked
- Performance issues (page load speed, memory usage)
- UI/UX feedback on the toolbar panel, preferences, or blocked page
- Extension conflict detection not working as expected
- Any crashes or console errors prefixed with
[WaterfoxBlocker]
Known issues:
- [x]
<empty string>in browser console when browsing in general - [ ] Startpage flags the ad blocker, even if ads are showing
- [ ] YouTube detects ad blocking
- [ ] Needs confirmation: UI appears even when disabled?
Feature requests:
- [x] UI for custom filter lists
- [ ] Refresh lists based on metadata, if available
- [ ] Allow setting custom filter refresh rate
- [x] Add manual refresh button for filters
- [x] Show last update time for each list (and metadata alongside)
- [x] Don't notify about extensions that use
in the name, but instead find ad-blockers specifically
After browsing for a bit, the Ad Blocking settings under about:preferences#privacy will disappear, even after disabling and re-enabling the prefs. The settings will reappear after I restart Waterfox.
Thanks - have noticed that and received other reports too! Will see if I can figure out why it's not staying put 🤔
My thoughts are mostly negative:
- Brave:
- You've invoked the name of the extremely untrustworthy "Brave: The Spyware Browser™".
- They have an earned negative reputation based on their literal theft, security vulnerabilities, and oh so many lies.
- Past benchmarks have shown that Brave's built in blocker is slower and uses more memory than uBlock Origin. This provable fact goes against the marketing company's lies. You cannot trust anything they say.
- Brave has claimed to block trackers in the past but then explicitly white listed Facebook and Twitter/X, the two most pervasive trackers on the entire internet. That's not okay. That's bad actually.
- The fact that you are just inheriting code written by a team proven to be untrustworthy is very concerning. I don't want anything from the Brave Browser anywhere near my computer, I don't care if it's just a stand-alone library separate from the rest of it. I DO NOT TRUST THEM, nor should anyone based on their past actions and current reputation.
- An ad blocker that doesn't block ads
- By default, you are letting plain text ads for StartPage be displayed. Because they are a "partner".
- I can therefore assume any tracking, advertising, etc company could just pay you to be a "partner" to get unblocked.
- I don't like the precedent this is setting.
- Either block all ads, or don't block any and let a real ad blocker do this job.
- Any browser, company, or organization, trying to get me to replace uBlock Origin or Privacy Badger is immediately suspicious. You specifically say that the built-in blocker will be compatible, but the obvious outcome is that people will question "why would I install a 3rd party thing when my browser comes with the feature already installed.". It deters people from using the well vetted, and better solution.
- I DO NOT want this enabled by default. This is the first time I've ever seen Waterfox do something that I would consider ethically questionable. Present an ad blocker that does not block ads, made by an advertising company known for deceit and security issues.
Me before this post:
Use Waterfox, it's literally just better Firefox. It has better default settings, actually respects you and your privacy, and can be used by any average person. It removes Mozilla's built-in ads (Try Mozilla VPN!). It has some additional UI customizations to change how tabs look and stuff. Really great, I recommend it to everyone, all the time!
Me after this post:
Well, I guess you can use Waterfox, but you have to make sure to turn off their fake "ad blocker" that is on by default. You know how I just spent 5 minutes explaining to you why you can't trust Brave: The Spyware Browser... yeah, they're the ones that make Waterfox's fake adblocker that doesn't block ads. So you have to make sure to turn that off. It's really annoying that I have to explain this EVERY TIME NOW, when I used to just be able to recommend it without any caveats because of how great it was. But I guess all software is doomed to be enshittified. (then I start sobbing uncontrollably, it's a real mess, I'm inconsolable).
Wishful thinking:
So I've critiqued and complained, let's offer some other ideas too:
- uBlock Origin has a strong reputation for putting the user first 100% of the time and not caving to any 3rd party pressures. There are no "exceptions", all ads are treated equally. They are also the best-in-class solution to this problem. If you want to partner with a pre-existing solution, it should be with them, not Brave: The Spyware Browser.
- I'd rather you just ship Waterfox with UBlock Origin pre-installed. I understand the argument for being able to block cached calls that an extension can't do. I read this entire post (and the 15 year blog post, and the 6.6.11 post). But that sounds like a feature, as a browser manufacturer, you could just offer. Even if it's exclusively to the bundled version of uBlock.
- This would actually be completely in keeping with the brand identity Waterfox has earned. Doing right by users, putting them first, and partnering with an adblocker that actually matches these ideals. I know they have a specific license that is harder to work with, but that's the PUBLIC license. You can always reach out and negotiate a custom license or specific exemption for Waterfox. The licenses are just there for when you go to court. If you are working with them and on good terms, I'm sure some type of arrangement can be made to allow this to work.
- Or don't, I'd still rather go with them as a web extension, with whatever limitations, since at least their heart is in the right place and they've repeatedly proven themselves to be trustworthy and singularly focused.
- The primary goals you want to achieve aren't bad ideas:
- Early request interception
- Always running as the page loads, no gaps for the extension to lag behind and miss anything
- Running against files loaded from cache
- But doing it in a way that is trustworthy is much more important. I trust YOU Alex, I DON'T trust anything related to Brave, and it would take a decade of them being on best behavior before I ever will. At the end of the day, they are the ones that built, and will be maintaining, that library. And it being built-in to Waterfox scares the shit out of me. It ruins the otherwise trustworthy nature of the project. Eroding user trust is not something any project should take lightly. In your own blog post announcing this you even have to take time out to distance yourself from their web3 scams. WHY WOULD YOU PARTNER WITH THESE PEOPLE????????? You're a good person, please don't do this to Waterfox.
- I'm also fine with Waterfox continuing, as it has for years, JUST BEING A BROWSER. It's okay to be unopinionated and not ship with any additional extensions preinstalled. I'm going to give you a very wise quote from someone that's been making browsers for a long time, you should listen to him, he was cooking with this one:
-
"The browser's job is to load web pages, keep your data private, and get out of the way. It seems other browsers have forgotten that." -Alex Kontos
-
Thanks for the years of work.
@TheJaredWilcurt this is a technical issue thread, so your response is off-topic, but I’ve left it where it is, just minimised. I’ll respond to it here but to anyone else, please focus on technical feedback/testing.
I think there are some misunderstandings here worth clearing up.
Firstly, adblock-rs is a standalone Rust library for parsing and matching filter lists. It doesn’t contain Brave browser code, it doesn’t phone home to Brave, and Brave’s business practices (whatever you think of them, I personally don’t align with them) have no bearing on what this library does. It takes in filter list rules and tells you whether a URL matches. That’s it. It’s very good at doing that.
The code is open source and auditable - but more importantly, Mozilla themselves have already adopted the same library for Firefox’s built-in content blocking: https://bugzilla.mozilla.org/show_bug.cgi?id=2013888. You seem to have skipped over that - if Mozilla using adblock-rs doesn’t make Firefox untrustworthy, I’m not sure why it would make Waterfox untrustworthy.
I evaluated multiple options before landing on adblock-rs, and it works really well.
Rewriting one from scratch to avoid the Brave “association” would have been mass duplication of effort for no technical benefit, and honestly I think that would be a worse use of my time.
I also really want to stress to everyone that association with Brave here is doing so much heavy lifting here it’s exhausting. It’s an open source library! It’s no different to using the numerous open source libraries made by Google, Meta and Microsoft (I’m sure we all have some choice words about these tech behemoths…)
For the next bit I need to be more direct - Waterfox is free, it’s built by one person, and the search partnership with Startpage is how it’s funded. It’s how I pay my bills. The alternative is Waterfox doesn’t exist, because I need to pass some misguided ideological and moral purity test.
The default behaviour is that plain text sponsored results on Startpage are not blocked. This is clearly documented, the preference (waterfox.blocker.allowSearchPartnerAds) is right there in about:config (and in the settings page), and you can turn it off.
No company can “pay to be a partner”, that’s not how this works and it’s not a precedent for anything. It’s a single, specific, transparent exception for the search engine that keeps the project alive. Today it’s Startpage (who by the way have given me a raw deal) tomorrow it might be another search engine, if I can find one that doesn’t bend me over the table.
I understand the principle of “block everything or block nothing”, but I don’t think that’s a realistic position when the person building the browser needs to eat. In fact, that’s a very privileged position - good for all the other maintainers out there who have a source of income outside of their projects, but I am not one of those people.
uBO is GPL-licensed, and bundling someone else’s extension without their active cooperation isn’t something I’m comfortable doing. Beyond the licensing, there are real technical advantages to engine-level integration - blocking cached loads, synchronous startup, CSP injection - that you simply can’t get by bundling an extension, even a privileged one.
And let me repeat this to everyone, one last time: this has nothing to do with Brave. That’s not how software development works. Firefox (and therefore Waterfox) uses many open source libraries. Some companies who makes those libs are bad. Some good. Either way, it makes no difference because you judge the quality of the open source lib.
Startpage's banner that says "please turn off your ad blocker" still shows up with this feature enabled (and I confirmed it is not blocking ads on startpage). So some part of startpage's blocker detection is tripping on it - might be confusing for people.
Hello, after switching to the native ad blocker i have noticed a heavier CPU overload which is causing the fans of my laptop to spin more when loading a new page.
@Varots and everyone else, I've pushed a new build, 20260409181142, which should deal better with the CPU usage. if you could test and let me know, I'll push this build live to everyone.
You can test auto update by opening the console and eun this in the Browser Console (Ctrl+Shift+J / Cmd+Shift+J):
Windows:
Services.prefs.getDefaultBranch(null).setCharPref("app.update.url.override", "https://aus.waterfox.com/update/staging/release/6.6.11/WINNT_x86_64/update.xml");
macOS
Services.prefs.getDefaultBranch(null).setCharPref("app.update.url.override", "https://aus.waterfox.com/update/staging/release/6.6.11/Darwin_x86_64-aarch64/update.xml")
Linux:
Services.prefs.getDefaultBranch(null).setCharPref("app.update.url.override", "https://aus.waterfox.com/update/staging/release/6.6.11/Linux_x86_64/update.xml");
Then go to 'About Waterfox' to trigger the check for the update (on Windows/Linux: Menu → Help → About Waterfox, on macOS in the global menu bar Waterfox → About Waterfox)
EDIT: Forgot, you need devtools.chrome.enabled set to true in about:config to be able to past JavaScript snippets in the browser console.
Suggestion: It would maybe be nice if the value(s) for "List update cadence" within WaterfoxBlockerService.sys.mjs where tweakable via some pref(s).
@MrAlex94 Done it and didn't change much. if it can help, i notice the spikes when change tabs. I have arch linux installed also. Another weird thing is that the about:processes of waterfox indicates a CPU usage of 25% during spikes while on my mission center i have it lower. I also have to say that i followed the guide to update it but i didnt see any update in the process. I closed the browser to be sure
@goodusername123 - good idea, also meaning to add manual refresh options in the UI. Some lists also have a Expires tag, I assume for update frequency I should probably follow as well.
@Varots interesting - if you disable the adblocker globally (don't need to disable the UI) either via the UI or by flipping waterfox.blocker.enabled, do still see a 'spike' when changing tabs? I don't seem to see one.
Just noticed your edit too - what build ID (under Application Basics) do you have in about:support? And separately, what about:processes measures is different to the system process manager, I wouldn't compare the two.
Some lists also have a
Expirestag, I assume for update frequency I should probably follow as well.
Yes.
And some UI for Custom Lists, eventually. Difficult to verify if the Ad Blocker is registering them with waterfox.blocker.filterListUrls.
@MrAlex94 i have build ID 20260408151904. is it the correct one?
Some lists also have a
Expirestag, I assume for update frequency I should probably follow as well.Yes.
And some UI for Custom Lists, eventually. Difficult to verify if the Ad Blocker is registering them with
waterfox.blocker.filterListUrls.
Ah yes, on the list too
@MrAlex94 i have build ID 20260408151904. is it the correct one?
Ah that's still the old build. 20260409181142 is the updated one
I tried to turn this on, however, I apparently have to choose between this and BlockTube, and I seemingly can't have both simultaneously as I get a prompt that makes me choose one or the other. Would be great if this incompatibility could be resolved. Keep up the great work!
Edit - Oh, another issues. I have both BlockTube and uBlockOrigin installed. The pop-up only told me about BlockTube though, so I had no idea that it disabled uBlockOrigin when I tested choosing the built-in blocker. Assuming uBlockOrigin is incompatible?
Edit2 - Last feedback, would prefer a less visibly catching red for the ad blocker symbol in the tab bar. It's a bit bright and too eye-catching in my opinion. Using dark theme.
The efficiency is really high and saves a lot of memory. Unfortunately, users can't add ad filtering rules themselves. For example, 1. When the internet speed is slow, users need to filter all videos. 2. Users want to filter annoying hot searches. All third-party rules have been released for hot searches.
Excuse me ...
.Ad blockers ( e.g. uBlock Origin , AdGuard ) ...
Can be used with ( Waterfox's built-in ad blocker )... ? ...
.
I would also like to know if we can (at least eventually) use them both. UBO offers a lot of customization and flexibility I rely on like manual element blocking, custom lists and "My Filters" entries. I don't mind the overhead of having both enabled if this means that the native engine covers the startup period and bulk blocking, then having UBO kick in and further refine the result with its cosmetic filters.
Also echoing @IcedEagle in picking a more muted color for the icon, maybe something closer to UBOs as well.
I am blocked from watching YouTube and get an Ad Block notification using this, whereas Ublock Origin blocks ads and I'm able to watch YouTube videos normally.
After I visit the testing page (100/100), then turn off blocking via the top widget and turn it back on, the score is 91/100. GIF image and static image both fail the Block visibility test.
I tried to turn this on, however, I apparently have to choose between this and BlockTube, and I seemingly can't have both simultaneously as I get a prompt that makes me choose one or the other. Would be great if this incompatibility could be resolved. Keep up the great work!
Edit - Oh, another issues. I have both BlockTube and uBlockOrigin installed. The pop-up only told me about BlockTube though, so I had no idea that it disabled uBlockOrigin when I tested choosing the built-in blocker. Assuming uBlockOrigin is incompatible?
Edit2 - Last feedback, would prefer a less visibly catching red for the ad blocker symbol in the tab bar. It's a bit bright and too eye-catching in my opinion. Using dark theme.
Ah, I added a RegEx to check for any extension with 'blocker' in it to prevent conflicts, but guess that's a bit too aggressive - should stick with a manually curated list instead.
Will think about the icon too; the idea is more for new users to know it's there, it's intentional because if a site breaks people might be confused why.
The efficiency is really high and saves a lot of memory. Unfortunately, users can't add ad filtering rules themselves. For example, 1. When the internet speed is slow, users need to filter all videos. 2. Users want to filter annoying hot searches. All third-party rules have been released for hot searches.
You can, it just has to be done via the pref waterfox.blocker.filterListUrls at the moment, there's no UI for it.
Excuse me ...
.Ad blockers ( e.g. uBlock Origin , AdGuard ) ...
Can be used with ( Waterfox's built-in ad blocker )... ? ...
.
It's not designed to be - you're essentially duplicating work. It's likely Waterfox would do the blocking anyway and the other blockers wouldn't be really doing much.
I am blocked from watching YouTube and get an Ad Block notification using this, whereas Ublock Origin blocks ads and I'm able to watch YouTube videos normally.
Interesting - I tested YouTube extensively on both macOS and Windows (both signed in and signed out) and all I get is the 'Experiencing interruptions? Find out why' badge in the bottom left. Could this be regional? Which geo are you in?
After I visit the testing page (100/100), then turn off blocking via the top widget and turn it back on, the score is 91/100. GIF image and static image both fail the Block visibility test.
This is expected because when you disable blocking, previously blocked images load and enter the browser's memory cache. Re-enabling blocking catches new network requests, but images already cached in memory aren't re-fetched. A normal refresh can still serve from cache - close the tab and reopen it (or hard refresh with Ctrl+Shift+R) to get back to 100/100.