Closed KyleMaas closed 3 years ago
Evidently, the request for file storage in Chromium comes from here:
But in Firefox, RAF is handled by random-access-idb-mutable-file
:
...which doesn't use navigator.storage
and thus is unlikely to need to ask permission. As such, I'm going to go ahead and close this.
In Chromium, when I first launch ssb-browser-demo, it pops up a box asking if I want to let it persist storage. Firefox does not ask. I have not tried a long-running instance of ssb-browser-demo under Firefox with enough data to trigger eviction, but I'm wondering if we need to run:
https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist
Because this says we would need to to avoid eviction:
https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria