The sample script below would create any arbitrary size of database..

<html><head><script>
function makeStringOfLength(n)
{
    var str = "X";
    while (str.length < n)
        str += ((str.length << 1) < n ? str : makeStringOfLength(n - 
str.length));

    return str;
}
function setthesize()
{
var i = document.getElementById("amount").value;
localStorage.testDiv = makeStringOfLength(i);
document.getElementById("amount").value = "";
}
</script></head><body>
<input id="amount" type="text">
<a href="#" onclick="setthesize();return false;">run</a>
</body></html>


Thanks,





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ext [EMAIL 
PROTECTED]
Sent: Monday, November 24, 2008 8:56 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [webkit-dev] Limiting the size of LocalStorage

Thanks Darin,
Does DatabaseTracker control LocalStorage too, or only offline SQLite databases?
In my QT build, the callback did not seem to arrive to ChromeClientQt.
Thanks, Yael 

-----Original Message-----
From: ext Darin Adler [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 8:40 PM
To: Aharon Yael (Nokia-D-MSW/Boston)
Cc: [email protected]
Subject: Re: [webkit-dev] Limiting the size of LocalStorage

On Nov 24, 2008, at 5:35 PM, [EMAIL PROTECTED] wrote:

> Is it possible to limit the size of the LocalStorage databases and 
> selectively allow only certain servers to use this feature?

Yes. All sites start out with a quota of 0. Increase the quota when the 
ChromeClient exceededDatabaseQuota function is called. Increase the quota by 
calling DatabaseTracker::setQuota.

     -- Darin

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to