| 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 d107a6d4b977da0c64ed6bf81cf41950183c6aa2..0e394cedac640bbd764abc64a88778817f5296ba 100644
|
| --- a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| +++ b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc
|
| @@ -315,6 +315,15 @@ void WebPluginDelegateImpl::WindowedSetWindow() {
|
| return;
|
| }
|
|
|
| + // See https://bugzilla.mozilla.org/show_bug.cgi?id=108347
|
| + // If we call NPP_SetWindow with a <= 0 width or height, problems arise in
|
| + // Flash (and possibly other plugins).
|
| + // TODO(piman): the Mozilla code suggests that for the Java plugin, we should
|
| + // still call NPP_SetWindow in that case. We need to verify that.
|
| + if (window_rect_.width() <= 0 || window_rect_.height() <= 0) {
|
| + return;
|
| + }
|
| +
|
| instance()->set_window_handle(windowed_handle_);
|
|
|
| DCHECK(!instance()->windowless());
|
|
|