From: Christian Dywan Date: Sun, 17 Oct 2010 20:52:11 +0000 (+0200) Subject: Add item to clear HTML5 databases X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6480329bbf024eb2142c7d3ff72f9b1b70024cd6;p=midori Add item to clear HTML5 databases --- 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)