Avoid having no main frame, this fixes a g_signal_connect warning
This commit is contained in:
parent
5e458d2a5a
commit
d9f90f13e6
1 changed files with 2 additions and 0 deletions
|
@ -1563,6 +1563,8 @@ midori_view_construct_web_view (MidoriView* view)
|
|||
katze_net_get_session (view->net), NULL);
|
||||
#endif
|
||||
|
||||
/* Load something to avoid a bug where WebKit might not set a main frame */
|
||||
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), "");
|
||||
web_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view->web_view));
|
||||
|
||||
g_object_connect (view->web_view,
|
||||
|
|
Loading…
Reference in a new issue