Closed Radagast closed 4 years ago
Hi @Radagast
How are you seeing and verifying that?
I haven't been able to make heads or tails from the "Storage" tab in the dev console. I can't say if anything of value is stored there.
But to answer your question: as the feature indicates the container is removed. There's no extra work done, because we rely on firefox to actually cleanup after itself when a container is destroyed. The relevant line is here.
If you have a method / proof of concept that shows a website opened in a recreated container (the IDs of the containers will be different) has access to the data that should've been deleted, there are two courses of action I see:
How are you seeing and verifying that?
Create a container for youtube
Modify the preferences for the container so that when the lifetime= last tab closed
Open youtube tab and confirm it's using the container
Check preferences/Privacy&Security/manage Data
See both Cookies and Storage have entries for youtube
Delete the youtube tab
7 Check preferences/Privacy&Security/manage Data
Same for any site that sets both cookies and storage.
Unfortunately it's a known Firefox issue that container storage isn't always removed completely, see Bugzilla 1474608. However, the data isn't accessible by the browser since the container id (cookieStoreId) changes.
@stoically
Thanks for that. I'd noticed similar behaviour with Temporary Containers but for some reason hadn't connected the dots.
I guess we can close this then since it's internal to firefox
You can configure the Cookie AutoDelete add on to clean up after closed containers, including cache, IndexedDB, cookies, localStorage, service workers, & plugin data. That way, whenever the last tab in a container is closed, CAD will clean up all the stored data from that container after a configurable delay (or immediately).
When setting preferences for a container to Lifetime = Until the last tab is closed, what data is supposed to be removed after the last tab has been closed. For me, it's only cookies that are removed. I still see indexeddb/local storage.
Firefox 70 Linux.