Re: NPAPI Z-order

[email protected] Mon, 22 Apr 2013 06:33:29 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
On Monday, April 22, 2013 3:21:39 PM UTC+2, Boris Zbarsky wrote:
> On 4/22/13 4:54 AM, Christian Frost wrote:
> 
> > I have made an NPAPI plugin that I need to control z-ordering of.
> 
> 
> 
> Is it a windowless plug-in?  If so, it should just work.
> 
> 
> 
> -Boris

I have tried to make it windowless by having the following in my NPP_GetValue():

....
case NPPVpluginWindowBool:
    *((NPBool*)value) = false;
    break;
....

To change the z-order use the following:

NPVariant id_var;
NPVariant style_var;
STRING_TO_NPVARIANT("position:absolute;z-index:-1;", style_var);
browser->setproperty(mNPPInstance, npobj, browser->getstringidentifier("style"),&style_var);

However, it seems to have no effect.

/Christian