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

reminder: investigate IDB [solved: dom.serviceWorkers.enabled] #234

Closed
Thorin-Oakenpants opened this issue Sep 12, 2017 · 10 comments
Closed

Comments

@Thorin-Oakenpants
Copy link
Contributor

Thorin-Oakenpants commented Sep 12, 2017

SOLVED: some sites use service workers to spawn their IDB entries

@Thorin-Oakenpants Thorin-Oakenpants self-assigned this Sep 12, 2017
@grauenwolfe
Copy link

grauenwolfe commented Sep 13, 2017

default:

  • https+++www.youtube.com^firstPartyDomain=youtube.com > cache > caches.sqlite
  • moz-extension+++id-string > idb > .sqlite file & folder with 5 items named; 8, 9, 13, 14, 16 – (fairly sure this is uBo's filter lists)

permanent:

  • chrome > idb > .sqlite file & empty folder
  • moz-safe-about+home^firstPartyDomain=about.id-string.mozilla > idb > .sqlite file & empty folder

temporary:

  • never has anything in it

So what is the final verdict with extensions, specifically uBo and having to enable IDB, dom storage, etc? Did I understand correctly that IDB must be enabled now to let uBo do it's thing properly?

Also, about:cache always shows 0 entries, even after YouTube, or any other site that creates a folder in /storage, so I'm a little confused about that. I do occasionally get cache entries from certain Mozilla pages, wyciwyg, and uBo's filter lists. I must have something off then if you, @Thorin-Oakenpants are not getting anything at all. I get very little but still, that's more than nothing. I don't even know how much I should care or even worry about it anymore. Every countermeasure seems break something else...

PS - If there's any possible danger in listing those file/folder names verbatim please let me know. No idea if they are UUID or generic or whatever.

@earthlng
Copy link
Contributor

turned off OCSP (security.OCSP.require)

FYI: that pref doesn't "turn off" OCSP, it only disables hard-fail.

re: youtube - you maybe don't get the IDB stuff because of some of your uBlock filters and/or rules. I think you once said you're using the full "Youtube: Pure Video Experience" - I use only parts of it and I've also seen the IDB files/folders when I open YT in a non-private window.

@grauenwolfe about:cache is currently broken due to first-party-isolation afaik

@Atavic
Copy link

Atavic commented Sep 13, 2017

I have crap there.

@grauenwolfe
Copy link

If I'm understanding the bug report correctly, it looks like FPI = true is hiding cache entries even though they are still actually being collected? And here I am thinking that at last I had completely disabled any caching...

I've noticed that changing browser.cache.use_new_backend_temp = false instantly causes cache entries to become visible (after refreshing about:cache) even with FPI = true. I don't know what this means ultimately other than Mozilla's caching implementation is one of the most convoluted systems I've dealt with.

If anyone likes to check:

  1. set browser.cache.use_new_backend_temp = false
  2. load a few websites
  3. refresh about:cache and viola - cache entries are there
  4. set browser.cache.use_new_backend_temp = true
  5. refresh about:cache and now they've all disappeared

What do you guys see when you load about:cache? Here's mine with these settings:

  • privacy.firstparty.isolate = true
  • browser.cache.use_new_backend_temp = false

screen

And now with these settings:

  • privacy.firstparty.isolate = true
  • browser.cache.use_new_backend_temp = true

screen2

And finally, shouldn't the disk section's entries be all "0"? Yes, it clearly states "Storage disk location: none, only stored in memory" but I'd be more comfortable if it showed all "0" just like the appcache section does. I don't get it. I have every cache option disabled except in memory only.

@crssi
Copy link

crssi commented Sep 14, 2017

I have no time, at the moment, to do some tests. :(

But what about

user_pref("privacy.firstparty.isolate.restrict_opener_access", true);

Does this preference block the cache cleaning?

Otherwise out of ghacksuser.js default I have additionally

user_pref("browser.cache.memory.enable", false);
user_pref("privacy.firstparty.isolate", false);

The privacy.firstparty.isolate = false is for a reason that, otherwise cookies are not cleaned by "Cookies Exterminator" or any other WE that deals with those.
"Cookies Exterminator" I use until "Cookie AutoDelete" is not able to remove local storage.

It might be a bit slower rendering (or its a placebo effect only), but I have 0 cache and got effectively rid of ETAG cookieless tracking/fingerprinting too.

Ohh, nice report @grauenwolfe.

This is about:cache here after a few hour usage:

@earthlng
Copy link
Contributor

@grauenwolfe

And finally, shouldn't the disk section's entries be all "0"?

If that bothers you, you can set browser.cache.disk.capacity to 0.

@Forsaked
Copy link

Was the PB mode active?

@earthlng
Copy link
Contributor

I wish I could get HTTP header modify whatever to do as it says

It only allows modifying request headers and afaik some of the cache-dependent request headers are impossible to remove because they're probably added by FF after extensions had their hands on the headers. You need something that allows removing the Etag from the response headers.

@Atavic
Copy link

Atavic commented Sep 14, 2017

Don't you use the js like your master does?

ESR with minor changes here.

@Thorin-Oakenpants Thorin-Oakenpants changed the title reminder: investigate IDB reminder: investigate IDB [solved: dom.serviceWorkers.enabled] Sep 14, 2017
@crssi
Copy link

crssi commented Sep 14, 2017

OMG, I was in tiers laughing, even before way before you mentioned me. :)

Thorin-Oakenpants referenced this issue Oct 31, 2017
"Push and web notifications require service workers, which in turn require workers." - this is clearly not (or no longer) true. See #256 where workers are disabled, but service workers enabled, and service workers create IDB entries on Youtube
@Thorin-Oakenpants Thorin-Oakenpants removed their assignment Apr 12, 2020
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

6 participants