dillbyrne / random-agent-spoofer

Firefox addon - Rotates complete browser profiles ( from real browsers / devices ) at a user defined time interval. It includes many extra privacy enhancing options
https://addons.mozilla.org/en-US/firefox/addon/random-agent-spoofer/
GNU General Public License v3.0
615 stars 108 forks source link

Clear local DOM storage #126

Open ProgerXP opened 9 years ago

ProgerXP commented 9 years ago

Currently there's just one choice - to disable the storage. But it would make more sense to have it cleared on exit instead - just like Flash and normal cookies. Some sites (e.g. maps) require storage and rightfully so. Disabling it altogether isn't necessary as long as information there doesn't survive the restart. Basically, treat it as extended cookies.

ARwMq9b6 commented 9 years ago

Yes it is, https://addons.mozilla.org/en-US/firefox/addon/cookie-controller/ will be helpful without dom disabled.

ProgerXP commented 9 years ago

Thanks for the link, I'll use this addon for now. However, it would be nice to have in RAS core since it already can disable the storage.

ProgerXP commented 9 years ago

Since this would break sites which depending on it like Mega.co.cz there should also be an whitelist option.

There should be an option to clear the storage. But in fact I have solved this problem already. There are two ways:

So I think RAS can just ignore this feature request as there is even a standard way to handle it.

ProgerXP commented 9 years ago

Well, I already did say that using another addon sux, so I don't know why you suggest that now, thanks anyway.

Because unlike other addons (e.g. suggested Cookie Controller) Volatile Storage does only one thing and its impact on anything from performance to UI is negligible.

Nope, clear cookies until I close Firefox does not delete any dom storage since this is more like a supercookie

Have you tried it yourself? Simple experiment shows that it does, for me. First set that setting, then open the console on any site that you haven't whitelisted cookies on, run localStorage.setItem('abc',123), restart Firefox, go to that site again and you will see that localStorage contains 0 elements. On the other hand, if you Allow cookies for a particular site and store any item in LS on that domain - it will persist after restart.

Then again if you set an LS item and then check the contents of webappsstore.sqlite you will see that no items appear in there when they are set.

dillbyrne commented 9 years ago

Hello everyone .

Sorry for the late reply. I was injured and unable to type.

This is on the road map and I will try to get a working solution in the next release or two. I have not had a proper chance to try it out. It will have to be done using script injection, this will allow us to selectively whitelist it and block it elsewhere.

It should be sufficient to block the setter and getter methods of the localStorage object and make them return null or undefined if they are not whitelisted.