[webkit-help] webkit-help Digest, Vol 28, Issue 12

Adam Roben aroben at apple.com
Wed Oct 12 04:36:34 PDT 2011


On Oct 12, 2011, at 3:06 AM, Vicky Tux wrote:

> Acutally I'm not a Web Developer. We are using webkit as part of our middle-ware. Some of the web applications authored to hide the plugin from layout as like below,
> 
>   <div style="display: none;" >
>        <object type="application/x-plugin1" id="plugin1"></object>
>        <object type="application/x-plugin2" id="plugin2"></object>
>   </div>
> 
> Also those plugins are scripted from Java Script. In the above case webkit is doesn't initialize plugins if it's(or parent's) style is display : none.
> 
> Currently webkit's plugin initialization is based on RenderTree not DOMTree. To fix this issue I thinking to implement a RenderNone class(as like RenderBlock,RenderInline,..etc) which paints nothing but just acts as a container for child elements.
> 
> But i don't have any idea of RenderTree. Currently implementing RenderNone based on RenderBlock  & RenderInline.
> 
> Will it work..? any suggestions..?

Do any other browsers do this? If not, this seems like a potential compatibility issue.

If you want to hide plugins visually bug still have them run I'd suggest using visibility:hidden instead of display:none.

-Adam




More information about the webkit-help mailing list