- fixed <rdar://problem/
5652380> Initial prompt shows "" for databases with no user-visible name
* storage/DatabaseTracker.cpp:
(WebCore::DatabaseTracker::canEstablishDatabase):
pass "name" instead of "displayName" if there's no displayName
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28829
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-18 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Brady
+
+ - fixed <rdar://problem/5652380> Initial prompt shows "" for databases with no user-visible name
+
+ * storage/DatabaseTracker.cpp:
+ (WebCore::DatabaseTracker::canEstablishDatabase):
+ pass "name" instead of "displayName" if there's no displayName
+
2007-12-17 Dan Bernstein <mitz@apple.com>
Reviewed by Maciej Stachowiak.
2007-12-17 Dan Bernstein <mitz@apple.com>
Reviewed by Maciej Stachowiak.
if (!(page = document->page()))
return false;
if (!(page = document->page()))
return false;
- unsigned long long newQuota = page->chrome()->requestQuotaIncreaseForNewDatabase(document->frame(), originData, displayName, estimatedSize);
+ // If no displayName was specified, pass the standard (required) name instead
+ unsigned long long newQuota = page->chrome()->requestQuotaIncreaseForNewDatabase(document->frame(), originData, displayName.length() > 0 ? displayName : name, estimatedSize);
setQuota(originData, newQuota);
return usage + estimatedSize <= newQuota;
setQuota(originData, newQuota);
return usage + estimatedSize <= newQuota;