Unreviewed, rolling out r154989.
[WebKit-https.git] / Source / WebKit2 / UIProcess / gtk / WebPopupMenuProxyGtk.cpp
index 1114a1840572e4b1f210f9858855a3b42f15d2fb..a41839a3eb9764ed4734af2e9768477e90ef3427 100644 (file)
@@ -97,7 +97,9 @@ void WebPopupMenuProxyGtk::showPopupMenu(const IntRect& rect, TextDirection text
     // menu right after calling WebPopupMenuProxy::showPopupMenu().
     m_runLoop = adoptGRef(g_main_loop_new(0, FALSE));
 
+    gdk_threads_leave();
     g_main_loop_run(m_runLoop.get());
+    gdk_threads_enter();
 
     m_runLoop.clear();