Unreviewed, rolling out r154989.
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / gtk / WebKitWebView.cpp
index 31871624ae92f9720200f72e66b7a2406b490c78..72fe66a42ead22faf2d9a485a99122532622fed2 100644 (file)
@@ -1560,7 +1560,9 @@ void webkitWebViewRunAsModal(WebKitWebView* webView)
     g_signal_emit(webView, signals[RUN_AS_MODAL], 0, NULL);
 
     webView->priv->modalLoop = adoptGRef(g_main_loop_new(0, FALSE));
+    gdk_threads_leave();
     g_main_loop_run(webView->priv->modalLoop.get());
+    gdk_threads_enter();
 }
 
 void webkitWebViewClosePage(WebKitWebView* webView)