mozilla / contain-facebook

Facebook Container isolates your Facebook activity from the rest of your web activity in order to prevent Facebook from tracking you outside of the Facebook website via third party cookies.
Mozilla Public License 2.0
979 stars 176 forks source link

Clearing Facebook Data on Install #21

Open TanviHacks opened 6 years ago

TanviHacks commented 6 years ago

In addition to cookies, can we clear all site data - localstorage, indexeddb.

Here is a list of site data I previously compiled. Not all areas may be relevant, or easy to clear. So just do what you can and document it here.

Cookies Cache Session Manager IndexedDB localStorage Site Storage (Persistent and Non-persistent) Service Worker storage

groovecoder commented 6 years ago

I see everything except Site Storage available here: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/browsingData/DataTypeSet

TanviHacks commented 6 years ago

Service Workers is handled in issue #101 and PR #106.

Would be nice to get this into 1.4.0, but we don't have to.

stoically commented 6 years ago

According to the API Docs is clearing everything else besides cookies and localStorage by hostname not possible yet

hostnames Optional

Array of string. This property only applies to cookies and local storage items. Only remove cookies and local storage items which are associated with these hostnames.

Afaik that's an issue that most cleaners still face, e.g. https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/issues/171

stoically commented 6 years ago

Another problem might be that it's not possible to instruct browsingData.remove to only clear for specific containers - so we would clear data in the Facebook Container in that case too.

TanviHacks commented 6 years ago

We need a platform bug to make this happen. @jonathanKingston can you add the platform bug here?

jonathanKingston commented 6 years ago

The bug is: https://bugzilla.mozilla.org/show_bug.cgi?id=1353726 I should take a look to see how much work this involves tomorrow as this would solve many problems for container extensions.