Skip to content
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

uBo WE and retention of blocklists [solved IDB] #239

Closed
Gitoffthelawn opened this issue Sep 21, 2017 · 14 comments
Closed

uBo WE and retention of blocklists [solved IDB] #239

Gitoffthelawn opened this issue Sep 21, 2017 · 14 comments

Comments

@Gitoffthelawn
Copy link

Gitoffthelawn commented Sep 21, 2017

What situations cause uBo blocklists to be reset?

@Forsaked
Copy link

Forsaked commented Sep 21, 2017

This only happens if the indexedDB is disabled by the user.js or PB mode.
I have set Firefox to clean everything on exit without using the PB mode or indexedDB disabled and my lists survive closing the browser.
Using eCleaner will kill the indexedDB if its enabled, so you need to download and rebuild your blocklists every Firefox start.
There is nothing we can do about this except enabling the indexedDB, disabling PB mode and don't using eCleaner, until Mozilla or Gorhill changes something.

@Gitoffthelawn
Copy link
Author

@Forsaked What's your definition of PB mode?

Since you have Firefox cleaning everything on exit, doesn't it delete indexedDB?

@Forsaked
Copy link

My "definition" of PB mode is browser.privatebrowsing.autostart=true, which prevents Firefox in using the indexedDB even if it's enabled in the prefs.
With everything i mean, everything what Firefox itself can clean up on exit: cache, cookies, downloads, formdata, history, offline Apps, sessions and site Settings.

@Gitoffthelawn
Copy link
Author

Gitoffthelawn commented Sep 21, 2017

@Forsaked Hmmm... I set up a test with browser.privatebrowsing.autostart=false and dom.indexedDB.enabled=true, and set Firefox to clean everything on exit. When I do this, uBo (WebExtensions version) loses its blocklists, and they have to be re-downloaded every time the browser starts.

Do you have a different experience?

@Forsaked
Copy link

Yes, my lists don't get cleared.

@Gitoffthelawn
Copy link
Author

@Forsaked Thanks. When you restart the browser, and go to the 3rd-party-filters tab in uBo, is the Update now button yellow?

@Forsaked
Copy link

As i told you, no.
I was using the PB mode before the native WE of uBlock landet.
Then i tried to enable the indexedDB only to find out that it is still disabled in PB mode.
So i was forced to disable PB mode and enable indexedDB.
Since then my filter lists stay and i don't need to download them every restart of Firefox, except there is an update.

@Gitoffthelawn
Copy link
Author

@Forsaked Sounds good. We are seeing different things. Not sure why. What version of Firefox are you using?

@Forsaked
Copy link

Stable, but also tested on Beta and Nightly.
Did you still use eCleaner?

FF + PB + iDB disabled = uBO list wipe
FF + PB + iDB enabled = uBO list wipe
FF + iDB disabled = uBO list wipe
FF + iDB enabled = uBO works, no wipe

@Gitoffthelawn
Copy link
Author

@Forsaked Not using eCleaner.

@Thorin-Oakenpants Yes.... I'll need to do that. I thought clearing cookies or offline website data cleared IDB (most likely the latter)... will have to do some experimentation.

@Forsaked
Copy link

Forsaked commented Sep 22, 2017

@Thorin-Oakenpants Fun Fact: If indexedDB is enabled while in PB mode (which makes it inaccessible), sites which require the indexedDB like Outlook Web App and other, are working.
I think they only check if it is enabled but don't use it.

@Gitoffthelawn Then please try a vanilla profile like @Thorin-Oakenpants advised you.

@Gitoffthelawn
Copy link
Author

Gitoffthelawn commented Sep 22, 2017

I figured out the issue. Thanks to @Forsaked and @Thorin-Oakenpants for their assistance.

I run Firefox within a script. (I've been meaning to share that script for a while.) As part of its duties, the script clears out ..\storage\default within the profile.

It turns out, uBo now stores its data in ..\storage\default. 'nuff said.

What's curious is that some other extensions store their data in ..\storage\permanent. Besides uBo, I don't know of any other extensions that store their data in ..\storage\default. To be clear, I'm not saying that any extensions (including uBo) are storing their data in the wrong place.

Anyone understand the difference between ..\storage\default, ..\storage\permanent, and ..\storage\temporary?

@Gitoffthelawn Gitoffthelawn changed the title uBo WE does not retain blocklists between sessions if Firefox set to clean everything on termination uBo WE and retention of blocklists Sep 22, 2017
@Gitoffthelawn
Copy link
Author

So we can close this then?

One unresolved question before we close:

Anyone understand the difference between ..\storage\default, ..\storage\permanent, and ..\storage\temporary?

@Gitoffthelawn
Copy link
Author

Good find. Thank you. Closing now...

@Thorin-Oakenpants Thorin-Oakenpants changed the title uBo WE and retention of blocklists uBo WE and retention of blocklists [solved IDB] Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants