Rubberstamped by John
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2007 19:38:06 +0000 (19:38 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Dec 2007 19:38:06 +0000 (19:38 +0000)
        * storage/DatabaseTracker.cpp:
        (WebCore::DatabaseTracker::canEstablishDatabase): If the UI Delegate returns *exactly* the estimated size
          for the new quota, we should allow the database to be created

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

WebCore/ChangeLog
WebCore/storage/DatabaseTracker.cpp

index 7edcf4854de979d6a2337d41658a527d53bbd309..4cf25f27b5692eeffbf0947efbaab9c2afd2bb66 100644 (file)
@@ -1,3 +1,11 @@
+2007-12-10  Brady Eidson  <beidson@apple.com>
+
+        Rubberstamped by John
+
+        * storage/DatabaseTracker.cpp:
+        (WebCore::DatabaseTracker::canEstablishDatabase): If the UI Delegate returns *exactly* the estimated size
+          for the new quota, we should allow the database to be created
+
 2007-12-10  David D. Kilzer  <ddkilzer@webkit.org>
 
         Bug 9683: Implement select.options.remove() method
index afcc2eb0f0c345fce62025fdb05ce5cafc02218f..6af1dfc475c0494f53ad5be6f0264f0ffcb65903 100644 (file)
@@ -148,7 +148,7 @@ bool DatabaseTracker::canEstablishDatabase(Document* document, const String& nam
     unsigned long long newQuota = page->chrome()->requestQuotaIncreaseForNewDatabase(document->frame(), originData, displayName, estimatedSize);
     setQuota(originData, newQuota);
     
-    return usage + estimatedSize < newQuota;
+    return usage + estimatedSize <= newQuota;
 }
 
 bool DatabaseTracker::hasEntryForOrigin(const SecurityOriginData& origin)