[GTK] Plugin process crashes with GTK2 windowed plugins
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 07:58:31 +0000 (07:58 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 07:58:31 +0000 (07:58 +0000)
commitd23533c964229f4e2f31b7f8c82310a72a9a3738
treea6a10bbb14869520da806740d6349eb66eada3a9
parent37ece54d41929e8b668a9c60ca25cae5539ffe49
[GTK] Plugin process crashes with GTK2 windowed plugins
https://bugs.webkit.org/show_bug.cgi?id=132127

Reviewed by Martin Robinson.

It happens sometimes because the socket is used before the plug
has been added. A runtime critical warnings is shown and it
sometimes ends up crashing.

* WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
(WebKit::NetscapePlugin::platformPostInitializeWindowed): Do not
show the plug widget until the socket is connected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp