Add item to clear HTML5 databases

This commit is contained in:
Christian Dywan 2010-10-17 22:52:11 +02:00
parent d73b471ec4
commit 6480329bbf

View file

@ -1554,6 +1554,14 @@ midori_clear_flash_cookies_cb (void)
} }
#endif #endif
#if WEBKIT_CHECK_VERSION (1, 1, 14)
static void
midori_clear_html5_databases_cb (void)
{
webkit_remove_all_web_databases ();
}
#endif
int int
main (int argc, main (int argc,
char** argv) char** argv)
@ -1782,6 +1790,10 @@ main (int argc,
sokoke_register_privacy_item ("flash-cookies", _("'Flash' Cookies"), sokoke_register_privacy_item ("flash-cookies", _("'Flash' Cookies"),
G_CALLBACK (midori_clear_flash_cookies_cb)); G_CALLBACK (midori_clear_flash_cookies_cb));
#endif #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 */ /* Web Application support */
if (webapp) if (webapp)