Re: Firefox 22 hidden NPAPI

Boris Zbarsky <[email protected]> Thu, 04 Jul 2013 10:24:15 -0400
Newsgroups gmane.comp.mozilla.devel.plugins
Message-ID <[email protected]>
On 7/4/13 4:06 AM, [email protected] wrote:
> It seems that the NPAPI plugins which have the attribute hidden="true" in an 'embed' element are not loaded.
> 1. Is this a new feature in firefox 22?

It's a fix for a spec compliance bug.

In Firefox 21, <embed> styled with display:none does not instantiate the 
plug-in.

Per HTML5 spec, the "hidden" attribute makes the element be styled with 
display:none.

In Firefox 21, we do that for all elements _except_ <embed>.

Firefox 22 removed the exception for <embed> so that we are now 
following the spec.

Do other UAs do something different here?  If so, what?

> 2. What is the best solution/workaround for this?

width=0 height=0 instead of the hidden=true, probably.

-Boris