Get some help on the bulletin board:
It seems that an implementation of this method is included in WebKit's WebKitTools in its open SVN. (The class is called UIDelegate). http://trac.webkit.org/browser/trunk/WebKitTools/DumpRenderTree/mac/U ...
I assume that you have created a delegate for your WebKit view. In this delegate class, create a method with a signature:
- (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin database:(NSString *)databaseIdentifier;
You can probably use a modified version of the UIDelegate implementation:
- (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin database:(NSString *)databaseIdentifier { static const unsigned long long defaultQuota = 5 * 1024 * 1024; [origin setQuota:defaultQuota]; }
I have not tried this, therefore YMMV.
John
source share