Got empty clipRect in NPP_SetWindow while resizing

Gang Ji <[email protected]>
Newsgroups gmane.comp.mozilla.devel.plugins
Organization http://groups.google.com
Message-ID <e8562352-809a-4628-a944-6d29635f8c70@glegroupsg2000goo.googlegroups.com>
Hi all,

I am new to firefox plugin developement and currently working on a video plugin for firefox 4.0.1.

One thing I noticed is that when resizing the firefox window, the plugin sometimes gets NPP_SetWindow with a valid window but empty clipRect.  For example, the clipRect=(286,119,286,119).  The width and hight of the clip rect is 0.  As a result, sometimes after resize, the video get empty.  Does anyone know under what conditions, the empty clipRect can be passed down to the plugin?

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.