Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webhelper: Initialize webkit favicon database
This fixes missing favicons in webhelper.
  • Loading branch information
hyperair committed Jan 13, 2018
1 parent 1fd266a commit ba6142e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webhelper/src/gwh-browser.c
Expand Up @@ -1124,6 +1124,7 @@ gwh_browser_init (GwhBrowser *self)
{
GtkWidget *scrolled;
WebKitSettings *wkws;
WebKitWebContext *wkcontext;
gboolean inspector_detached;

self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GWH_TYPE_BROWSER,
Expand All @@ -1134,6 +1135,9 @@ gwh_browser_init (GwhBrowser *self)
self->priv->web_view = webkit_web_view_new ();
wkws = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (self->priv->web_view));
g_object_set (wkws, "enable-developer-extras", TRUE, NULL);

wkcontext = webkit_web_view_get_context (WEBKIT_WEB_VIEW (self->priv->web_view));
webkit_web_context_set_favicon_database_directory (wkcontext, NULL);

self->priv->settings = gwh_settings_get_default ();
g_object_get (self->priv->settings,
Expand Down

0 comments on commit ba6142e

Please sign in to comment.