Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: openDatabase support



By default databases have a quota of 0; this quota must be increased before any database will be stored on disk.

WebKit clients should implement the WebUIDelegate method - webView:frame:exceededDatabaseQuotaForSecurityOrigin:database: and increase the quota as desired when that method is called. This method is defined in WebUIDelegatePrivate.h. It was added too late in the previous release cycle to make it into a non-private header. It would be worthwhile to file a bug about moving this call to WebUIDelegate.h so that it is part of the official API.

John

On Apr 21, 2008, at 11:02 AM, Alexander Clauss wrote:

Safari 3.1 now supports the property "window.openDatabase" in JavaScript.
There's an example page for this feature here:


<http://webkit.org/misc/DatabaseExample.html>


When using a WebKit-application that is not Safari to access the same page, I get an error message because the database could not created.

The problem is that

   if (window.openDatabase) {

is not undefined or NULL, indicating that the openDatabase feature is
available, but creating the database will nevertheless fail:

db = openDatabase("NoteTest", "1.0", "Database API example", 200000);

here "db" is always undefined or NULL.

So I assume that there must be some new additional API which must be
used to add or enabled the database feature in WebKit Applications.

Is this API already available, or where can I get information about
how to implement the database feature? Or should this work without any
additional code?


Also it might be a bug in WebKit that "window.openDatabase" is not undefined
or NULL when the openDatabase() doesn't work. I think when openDatabase()
doesn't work window.openDatabase should be undefined or NULL.


--
Alexander Clauss

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >openDatabase support (From: "Alexander Clauss" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.