-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uBlock appears to be unable to update filters in Firefox's private mode #409
Comments
Duplicate of gorhill/uBlock#3071 |
I'm aware of that issue but I might have misunderstood it. I thought it was only about the fact that new versions of filter cannot be saved and as a result ublock is forced to load the packaged filters when starting firefox in permanent private mode. My issue is that even after clicking "Update now" the filter count doesn't change. Is this the expected behavior? |
Yes, part of the issue amoung others(like storage appearing 0 bytes.) Don't use private browsing mode until the main issue is resolved by Firefox devs. |
uBO is not allowed to save the lists it downloads, and as a result always ends up loading the list from the package when it tries to reload all the filter lists after the lists have been "updated". |
Is it reasonable / feasible to add a workaround for private mode that only loads the updated filters into memory without trying to save them when you click "Update now"? |
Caching in memory sounds abusive. Another idea -- which I entertained when I fixed #399 -- is to allow uBO to fallback using There is a new hidden setting which allows a user to force a specific storage implementation for cache purpose, currently looked up only on non-Firefox browsers. I could add support for a An issue on Firefox though is that it does not declare the |
Of course, it turns out it's not that simple. uBO needs to look-up which storage API to use early as its JS is executed. To do so it stores the |
Related issue: - uBlockOrigin/uBlock-issues#409 By default `indexedDB` is used in Firefox for purpose of cache storage backend. This commit allows to force the use of `browser.storage.local` instead as cache storage backend. For this to happen, set `cacheStorageAPI` to `browser.storage.local` in advanced settings. Additionally, should `indexedDB` not be available for whatever reason, uBO will automatically fallback to `browser.storage.local`.
Prerequisites
Description
While uBO can't access indexedDB in Firefox's permanent private mode is a known issue, it appears that it can't update the filters in private mode as well. Updating using the "Update now" button doesn't change the filter count. (I'm not sure if it's a display issue or if no filters are actually loaded)
A specific URL where the issue occurs
[A specific URL is MANDATORY for issue happening on a web page, even if it happens "everywhere"]
Steps to Reproduce
Expected behavior:
The filters are initially all out of date. After updating the filters, the yellow triangles disappear and the filter count changes because newer version of the filters are loaded. The filter count should be roughly equal the filter count in Firefox normal mode (before the restart with extra command line options)
Actual behavior:
The filters are initially all out of date. After updating the filters, the yellow triangles disappear. However neither the network filter count nor the cosmetic filter count change, giving the appearance as if none of the filters are updated. The filter count is also significantly lower than in Firefox normal mode (before the restart with extra command line options)
Your environment
The text was updated successfully, but these errors were encountered: