Repository navigation
Description
Prerequisites
- I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
- This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
- This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
- I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
- The issue is not present after disabling uBO in the browser.
- I checked the documentation to understand that the issue I am reporting is not normal behavior.
I tried to reproduce the issue when...
- uBO is the only extension.
- uBO uses default lists and settings.
- using a new, unmodified browser profile.
Description
A filter list unticked and applied in the "Filter lists" pane while uBO is loading the filter lists is saved as unselected, but stays in effect: its filters keep applying until the next time the lists are loaded (an update that fetches something, a browser restart, or another "Apply changes"). Nothing on the page says so; the list shows as unticked.
The cause, as far as I can read it, is in src/js/storage.js: µb.loadFilterLists() returns the promise of a load already in progress:
if ( loadingPromise instanceof Promise ) { return loadingPromise; }"Apply changes" saves the new selection (applyFilterListSelection) and then sends reloadAllFilters. When a load is already running (for example the one that starts at the end of an update, after-assets-updated), the request joins it. That load read the selection before it changed, and nothing asks for another one. The same code is in 1.75.0 and in master (73b2bb6).
The window is the length of a load: about 2 to 4 seconds on a laptop with the default lists, longer with large lists.
A specific URL where the issue occurs.
Not a site issue. Any page a disabled list would affect shows it, e.g. a page with an element only an unticked list hides.Steps to Reproduce
- New Firefox profile, uBO 1.75.0 as the only extension, default lists. Wait until the first update after install has ended.
- In "Filter lists", click the clock icon of one list (EasyList here) to force its update, as the documentation describes.
- Within a second or two after that update ends (the page leaves its "updating" state), untick another list (EasyPrivacy here) and click "Apply changes".
- When the page is idle again, look at which lists uBO loaded: the last
staticFilteringDataChangedbroadcast (or the logger's "Reloading all filter lists: done") still lists EasyPrivacy, and its filters still apply.
Measured with a script that does exactly these steps through uBO's own dashboard messaging (listsUpdateNow for one list, which is what the clock icon sends, then the page's own checkbox and #buttonApply 150 ms after assetsUpdated), in Firefox 160.0 on Linux, a new profile per round, and every load uBO broadcast on its BroadcastChannel("uBO") recorded:
| rounds | unticked list still loaded after the page went idle | |
|---|---|---|
| uBO 1.75.0 as released | 3 | 3 of 3 (one load after "Apply changes", with 10 lists, EasyPrivacy among them; no other load in the 5 s after) |
| the same with the change proposed in the first comment below | 3 | 0 of 3 (the joined load with 10 lists, then one more with 9, without EasyPrivacy) |
Expected behavior
After "Apply changes" and once the page is idle, the filters in effect are those of the lists that are ticked.
Troubleshooting information
Reproduced in a new, unmodified Firefox 160.0 profile with uBO 1.75.0 installed as a temporary add-on (about:debugging) from the AMO package, default settings and default lists. The steps were driven by a script, so there is no long-lived installation to copy the Troubleshooting Information from; the version, the browser and the lists are the defaults above.
Found while testing a browser that ships uBO with a policy-selected list set (Nulavio); the issue reproduces with stock uBO in stock Firefox as described. The analysis and the proposed change were made with an AI coding assistant and checked by running the steps above.
Activity
caiolombello commentedon Nov 17, 2026
The repository takes pull requests from collaborators only, so here is the proposed change instead (commit caiolombello/uBlock@fb0574c, on top of
masterat 73b2bb6):A call to
µb.loadFilterLists()made while a load is in progress returned the promise of that load. The load in progress may have read the list selection before the change the call is meant to apply ("Apply changes" during the load that follows an update), so the change only took effect at the next load.With this change, such a call schedules one more load to start when the current one completes, and returns its promise. Any number of calls made during the same load share that one extra load, so a burst of requests still costs at most two loads.
Tested in Firefox 160.0 with the steps above, three rounds each: with 1.75.0 as released, the unticked list was still loaded in 3 of 3 rounds; with this change applied to 1.75.0 (the function is the same in
master), it was not loaded in 3 of 3 rounds, at the cost of one extra load.The analysis and the change were made with an AI coding assistant and checked by running those steps.
Moonghost-coder commentedon Nov 23, 2026