Re:HTML5 localStorage allows sites to fill up users' hard disks
by espadrine on Thursday February 28, 2013 @04:56AM
(#5297972)
Arguably, that's the spirit of the FileSystem API.
http://www.w3.org/TR/file-system-api/
> An application can request temporary or persistent storage space. Temporary storage may be easier to get, at the UA's discretion [looser quota restrictions, available without prompting the user], but the data stored there may be deleted at the UA's convenience, e.g. to deal with a shortage of disk space.
> Conversely, once persistent storage has been granted, data stored there by the application should not be deleted by the UA without user intervention. The application may of course delete it at will. The UA should require permission from the user before granting persistent storage space to the application.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by Sami_Lehtinen on Thursday February 28, 2013 @01:39PM
(#5300110)
There are better options than LRU which gets too easily flushed.
Check out CLOCK-Pro and LIRS.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by Tichy on Thursday February 28, 2013 @04:45AM
(#5297938)
I think localStorage already asks the user.
Re:HTML5 localStorage allows sites to fill up users' hard disks
by daleharvey on Thursday February 28, 2013 @06:51AM
(#5298238)
it doesnt, indexeddb and filesystem api do though
If the web app really needs permanent storage then that permanence of storage needs to be granted explicitly by the user.