Title: [199901] trunk/Source/WebKit2
Revision
199901
Author
ander...@apple.com
Date
2016-04-22 14:06:50 -0700 (Fri, 22 Apr 2016)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (199900 => 199901)


--- trunk/Source/WebKit2/ChangeLog	2016-04-22 20:57:26 UTC (rev 199900)
+++ trunk/Source/WebKit2/ChangeLog	2016-04-22 21:06:50 UTC (rev 199901)
@@ -1,3 +1,16 @@
+2016-04-22  Anders Carlsson  <ander...@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  <ryanhad...@apple.com>
 
         Fix builds that do not support AVKit

Modified: trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm (199900 => 199901)


--- trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm	2016-04-22 20:57:26 UTC (rev 199900)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/UIDelegate.mm	2016-04-22 21:06:50 UTC (rev 199901)
@@ -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;
     }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to