2008-04-10 Mario Bensi <mbensi@pleyo.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Apr 2008 00:30:33 +0000 (00:30 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Apr 2008 00:30:33 +0000 (00:30 +0000)
        Reviewed by Alp Toker.

        https://bugs.webkit.org/show_bug.cgi?id=18400
        Database example doesn't work on Gtk port

        Fix quota in ChromeClient

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::exceededDatabaseQuota):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31790 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp

index 5be1266..e8fa6a0 100644 (file)
@@ -1,3 +1,15 @@
+2008-04-10  Mario Bensi  <mbensi@pleyo.com>
+
+        Reviewed by Alp Toker.
+
+        https://bugs.webkit.org/show_bug.cgi?id=18400
+        Database example doesn't work on Gtk port
+
+        Fix quota in ChromeClient
+
+        * WebCoreSupport/ChromeClientGtk.cpp:
+        (WebKit::ChromeClient::exceededDatabaseQuota):
+
 2008-04-08  Adam Roben  <aroben@apple.com>
 
         Move callOnMainThread to WTF
index 28cd9b6..4e07cf4 100644 (file)
@@ -30,6 +30,7 @@
 #include "webkitprivate.h"
 #include "NotImplemented.h"
 #include "WindowFeatures.h"
+#include "DatabaseTracker.h"
 
 using namespace WebCore;
 
@@ -308,9 +309,13 @@ void ChromeClient::print(Frame* frame)
     webkit_web_frame_print(kit(frame));
 }
 
-void ChromeClient::exceededDatabaseQuota(Frame*, const String&)
+void ChromeClient::exceededDatabaseQuota(Frame *frame, const String&)
 {
+    // Set to 5M for testing
+    // FIXME: Make this configurable
     notImplemented();
+    const unsigned long long defaultQuota = 5 * 1024 * 1024;
+    DatabaseTracker::tracker().setQuota(frame->document()->securityOrigin(), defaultQuota);
 }
 
 }