Glodenox / wme-image-overlays

A userscript that allows Waze editors to overlay a local image onto the map in the background
GNU General Public License v3.0
4 stars 1 forks source link

Images tend to disappear once you've added several #1

Closed Glodenox closed 5 years ago

Glodenox commented 7 years ago

Due to the way IndexedDB tries to prevent websites from filling one's hard disk with binary data, it may sometimes occur that images get removed without any user interaction.

For this reason it would be better to store the image location and metadata in Local Storage instead and have a reference to the image blob in IndexedDB. This allows the user to restore the image again later on should IndexedDB decide to remove an image.

An investigation should be made to see whether it is possible to receive a notification or some indication on when and why an image gets removed as usually this should require an IndexedDB instance that takes up a decent percentage of the disk storage space (based on the documentation, at least).

Glodenox commented 5 years ago

This was partially fixed with the request for permanent storage to the browser. I haven't encountered any such issues for a while, but it's too soon to say this really fixed the issue.

Glodenox commented 5 years ago

I think it has been long enough with any reports of this happening, so I think it's safe to close this issue now.