Skip to content
Permalink
Browse files
WKWebView WebSQL is not enabled
https://bugs.webkit.org/show_bug.cgi?id=156928
rdar://problem/19029603

Reviewed by Beth Dakin.

Give databases a default quota of 50 MB, matching what we have in UIWebView.

* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::exceededDatabaseQuota):

Canonical link: https://commits.webkit.org/175027@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Anders Carlsson committed Apr 22, 2016
1 parent 71a8752 commit 1e5f1aea485b29dd20257fbf2fcd831ae5213fc1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
@@ -1,3 +1,16 @@
2016-04-22 Anders Carlsson <andersca@apple.com>

WKWebView WebSQL is not enabled
https://bugs.webkit.org/show_bug.cgi?id=156928
rdar://problem/19029603

Reviewed by Beth Dakin.

Give databases a default quota of 50 MB, matching what we have in UIWebView.

* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::UIClient::exceededDatabaseQuota):

2016-04-22 Ryan Haddad <ryanhaddad@apple.com>

Fix builds that do not support AVKit
@@ -239,7 +239,11 @@
void UIDelegate::UIClient::exceededDatabaseQuota(WebPageProxy*, WebFrameProxy*, API::SecurityOrigin* securityOrigin, const WTF::String& databaseName, const WTF::String& displayName, unsigned long long currentQuota, unsigned long long currentOriginUsage, unsigned long long currentUsage, unsigned long long expectedUsage, std::function<void (unsigned long long)> completionHandler)
{
if (!m_uiDelegate.m_delegateMethods.webViewDecideDatabaseQuotaForSecurityOriginCurrentQuotaCurrentOriginUsageCurrentDatabaseUsageExpectedUsageDecisionHandler) {
completionHandler(currentQuota);

// Use 50 MB as the default database quota.
unsigned long long defaultPerOriginDatabaseQuota = 50 * 1024 * 1024;

completionHandler(defaultPerOriginDatabaseQuota);
return;
}

0 comments on commit 1e5f1ae

Please sign in to comment.