| Index: webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| diff --git a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| index c20fee05aa9185623176d05ce43e6dd3b0898967..9f9838b8304e098b20560b041c07ca0495e0d7bb 100644
|
| --- a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| +++ b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| @@ -263,12 +263,10 @@ bool WebPluginDelegateImpl::WindowedCreatePlugin() {
|
| return false;
|
| }
|
|
|
| - window_.window = reinterpret_cast<void*>(parent_);
|
| - // The remainder of the code expects windowed_handle_ to exist for
|
| - // windowed mode, despite not actually ever reaching through
|
| - // windowed_handle_. It is still used as a token to represent "this
|
| - // plugin" in messages to the browser.
|
| - windowed_handle_ = parent_;
|
| + // Xembed plugins need a window created for them browser-side.
|
| + // Do that now.
|
| + windowed_handle_ = plugin_->CreatePluginContainer();
|
| + window_.window = reinterpret_cast<void*>(windowed_handle_);
|
|
|
| if (!window_.ws_info)
|
| window_.ws_info = new NPSetWindowCallbackStruct;
|
|
|