https://bugs.webkit.org/show_bug.cgi?id=72148
Reviewed by Antonio Gomes.
Source/WebKit/efl:
Add code to change the default quota (there as only a getter so far)
and one to clear the databases.
* ewk/ewk_settings.cpp:
(ewk_settings_web_database_default_quota_set):
(ewk_settings_web_database_clear):
* ewk/ewk_settings.h:
Tools:
* DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
(LayoutTestController::clearAllDatabases):
(LayoutTestController::setDatabaseQuota):
LayoutTests:
LayoutTestController::setDatabaseQuota is implemented now.
* platform/efl/Skipped:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@102966
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-12-15 Raphael Kubo da Costa <kubo@profusion.mobi>
+
+ [EFL] Add a few more web database functions to ewk_settings.
+ https://bugs.webkit.org/show_bug.cgi?id=72148
+
+ Reviewed by Antonio Gomes.
+
+ LayoutTestController::setDatabaseQuota is implemented now.
+
+ * platform/efl/Skipped:
+
2011-12-15 Brady Eidson <beidson@apple.com>
https://bugs.webkit.org/show_bug.cgi?id=74607
# EFL's LayoutTestController does not implement clearAllDatabases
storage
-# EFL's LayoutTestController does not implement setDatabaseQuota
-storage/open-database-creation-callback.html
-storage/quota-tracking.html
-
# EFL's LayoutTestController does not implement originsWithLocalStorage
storage/domstorage/localstorage/storagetracker
+2011-12-15 Raphael Kubo da Costa <kubo@profusion.mobi>
+
+ [EFL] Add a few more web database functions to ewk_settings.
+ https://bugs.webkit.org/show_bug.cgi?id=72148
+
+ Reviewed by Antonio Gomes.
+
+ Add code to change the default quota (there as only a getter so far)
+ and one to clear the databases.
+
+ * ewk/ewk_settings.cpp:
+ (ewk_settings_web_database_default_quota_set):
+ (ewk_settings_web_database_clear):
+ * ewk/ewk_settings.h:
+
2011-12-14 Gyuyoung Kim <gyuyoung.kim@samsung.com>
[EFL] Change efl style variable name with WebKit style for internal functions.
return s_webDatabaseQuota;
}
+void ewk_settings_web_database_default_quota_set(uint64_t maximumSize)
+{
+ s_webDatabaseQuota = maximumSize;
+}
+
+void ewk_settings_web_database_clear()
+{
+#if ENABLE(SQL_DATABASE)
+ WebCore::DatabaseTracker::tracker().deleteAllDatabases();
+#endif
+}
+
void ewk_settings_web_database_path_set(const char* path)
{
#if ENABLE(SQL_DATABASE)
*/
EAPI uint64_t ewk_settings_web_database_default_quota_get(void);
+/**
+ * Sets the default maximum size (in bytes) an HTML5 Web Database database can have.
+ *
+ * By default, this value is 1MB.
+ *
+ * @param maximum_size the new maximum size a database is allowed
+ */
+EAPI void ewk_settings_web_database_default_quota_set(uint64_t maximum_size);
+
+/**
+ * Removes all HTML5 Web Database databases.
+ */
+EAPI void ewk_settings_web_database_clear(void);
+
/**
* Sets the current path to the directory WebKit will write Web
* Database databases.
+2011-12-15 Raphael Kubo da Costa <kubo@profusion.mobi>
+
+ [EFL] Add a few more web database functions to ewk_settings.
+ https://bugs.webkit.org/show_bug.cgi?id=72148
+
+ Reviewed by Antonio Gomes.
+
+ * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
+ (LayoutTestController::clearAllDatabases):
+ (LayoutTestController::setDatabaseQuota):
+
2011-12-15 Martin Kosiba <mkosiba@google.com>
Fix find on web pages with -webkit-user-select: none for Chromium
void LayoutTestController::clearAllDatabases()
{
- notImplemented();
+ ewk_settings_web_database_clear();
}
-void LayoutTestController::setDatabaseQuota(unsigned long long)
+void LayoutTestController::setDatabaseQuota(unsigned long long quota)
{
- notImplemented();
+ ewk_settings_web_database_default_quota_set(quota);
}
JSValueRef LayoutTestController::originsWithLocalStorage(JSContextRef context)