From 6480329bbf024eb2142c7d3ff72f9b1b70024cd6 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 17 Oct 2010 22:52:11 +0200 Subject: [PATCH] Add item to clear HTML5 databases --- midori/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/midori/main.c b/midori/main.c index e5084b25..63aaa0a1 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1554,6 +1554,14 @@ midori_clear_flash_cookies_cb (void) } #endif +#if WEBKIT_CHECK_VERSION (1, 1, 14) +static void +midori_clear_html5_databases_cb (void) +{ + webkit_remove_all_web_databases (); +} +#endif + int main (int argc, char** argv) @@ -1782,6 +1790,10 @@ main (int argc, sokoke_register_privacy_item ("flash-cookies", _("'Flash' Cookies"), G_CALLBACK (midori_clear_flash_cookies_cb)); #endif + #if WEBKIT_CHECK_VERSION (1, 1, 14) + sokoke_register_privacy_item ("html5-databases", _("HTML5 _Databases"), + G_CALLBACK (midori_clear_html5_databases_cb)); + #endif /* Web Application support */ if (webapp) -- 2.39.5