I have been using IndexedDB to store FileSystemHandle objects so my Chrome extension can remember where users save their files. The main logic for saving the FileSystemHandle is running inside an offscreen document.
However, I noticed that when I run:
const persisted = await navigator.storage.persist();it always returns false.
I already have the unlimitedStorage permission, but after every extension update, the stored data is automatically wiped out.
Does anyone know why navigator.storage.persist() is returning false in this context, or why my IndexedDB data is being cleared after updates? Any help would be appreciated.