Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Local asset empty after restarting browser #11

Closed
eduardoeae opened this issue May 20, 2018 · 5 comments
Closed

Local asset empty after restarting browser #11

eduardoeae opened this issue May 20, 2018 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@eduardoeae
Copy link

I have a hosts file and I use a simple http server (python2 -m SimpleHTTPServer) for loading it to uMatrix's assets.
I don't want the server running all the time, so I launch it when my hosts file is updated and I want to update the asset in uMatrix, and close it afterwards.
So when the browser is restarted, uMatrix looks for the file in the server (even though I have "Auto-update assets" disabled) and as the server is not up, the connection fails and, here is the problem, the asset is emptied. 0 hosts blocked.
I know that uMatrix looks for the asset at boot, because I can see it in the log of the python server (when is running).

This is Archlinux on Firefox 60.0.1

@uBlock-user
Copy link
Contributor

uBlock-user commented May 20, 2018

Why did you remove the issue template ? That's there to be filled in and provide the information in that manner .

Secondly, do you have private browsing mode activated ?

@gorhill
Copy link
Member

gorhill commented May 20, 2018

I know that uMatrix looks for the asset at boot, because I can see it in the log of the python server

No, it shouldn't look at the asset at launch, they are supposed to be cached locally. If they are not cached locally, it's because you have specific Firefox or system settings which prevent this.

@uBlock-user
Copy link
Contributor

This one reminds me of uBlockOrigin/uBlock-issues#30, where similar conditions were listed too

@eduardoeae
Copy link
Author

I don't have private mode enabled, but I do have some settings for not storing history, etc. I disabled the option "Offline Website Data" in "Clear history when Firefox closes" and it no longer connects looking for the file at start, so it is not emptied anymore.
Not sure why the asset was empty if the connection failed, but my main problem is fixed.

@gwarser gwarser added duplicate This issue or pull request already exists invalid Not a valid issue labels May 20, 2018
@gwarser
Copy link

gwarser commented May 20, 2018

Not sure why the asset was empty...

Because you removed it.

uBlockOrigin/uBlock-issues#30 (comment)

This may be Firefox regression, you can investigate
gorhill/uBlock#3699
https://github.com/ghacksuserjs/ghacks-user.js/wiki/4.1.1-Setting-Extension-Permission-Exceptions
https://github.com/gorhill/uBlock/issues?q=is%3Aissue+sort%3Aupdated-desc+indexeddb+is%3Aclosed

gorhill/uMatrix#852
gorhill/uMatrix#863


Firefox 60.0.1, 61.0b7, uMatrix 1.3.8,
Using this list https://raw.githubusercontent.com/ZeroDot1/CoinBlockerLists/master/hosts

  • update
  • disable internet connection
  • restart browser

Cannot reproduce by selecting all check boxes under "Clear history when Nightly closes"

Can reproduce by selecting

  • "Firefox will - Never remember history"

or

  • "Firefox will - Use custom settings for history" -> "Always use private browsing mode"

This is expected, Firefox problem.

@gwarser gwarser closed this as completed May 20, 2018
@uBlock-user uBlock-user added Firefox specific to Firefox and removed invalid Not a valid issue labels May 20, 2018
@gorhill gorhill mentioned this issue Sep 29, 2018
7 tasks
@uBlock-user uBlock-user removed the Firefox specific to Firefox label Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants