[webkit-dev] Controling HTML5 local storage/ databases programmatically

Jeremy Orlow jorlow at chromium.org
Tue May 12 16:09:58 PDT 2009


On Tue, May 12, 2009 at 11:12 AM, Christian Dywan <christian at twotoasts.de>wrote:

> Heya,
>
> inspired by bug 25629 [1] I came to wonder how far webkit applications
> are able to control HTML5 local storage and databases. The bug report
> is mainly about enabling or disabling these features.
>
> So how far does WebCore allow for limiting stored data, in the form of
> an expiration date and in the form of disk quota? And how can one
> listen to changes, and manipulate data?


There's no quota support in local storage (yet..I'll probably be looking at
this eventually).  I don't believe there's any intention to have expiration
dates for database, LocalStorage, or AppCache, but there has been talk of a
LRU policy of eviction when devices are running out of storage space.


> I am thinking of ways similar to HTTP cookies, where I can easily see
> what is added, changed, removed and where data is coming from.
>
>
> Any tips as for how to do this from within WebCore, so that WebKit,
> specifically WebKitGTK+, can provide API for this, would be greatly
> appreciated.
>

There's no standard across the APIs for doing anything like this.  It
shouldn't be too hard to add to localStorage since it already has an event
system.  Not sure about the others, but I assume it'd take more work.


> Apologies for throwing local storage and databases in the same pot here.
> I'm aware these are distinct features.
>
>
> Yours,
>    Christian
>
> [1] https://bugs.webkit.org/show_bug.cgi?id=25629
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090512/5dcd6414/attachment.html>


More information about the webkit-dev mailing list