Dear Webkit Team,
Thanks for your continuous effort to making Webkit Great!!!.
Currently I'm involving plugin development based on npapi. I'm getting problem while using "display: none" style on <object> element to remove the plugin in the HTML layouting.
<div style="visibility: hidden; display: none;">
<object type="application/x-shockwave-flash" id="test"></object>
Actually above script should remove the plugin Element only from the layout, but the plugin must be scriptable from Java Script.
But unable to script the Object Element. If I remove the "display: none", I can able access from JS.
Actually my intention is to remove the Object Element from layout, but still I need use it's functionality.
Please refer the attachment for sample script.
Created attachment 107313 [details]
Sample Script to Access Plugin Functionality from JS while it is styled with "display:none"
You should be able to use visibility:hidden without display:none for now.
*** This bug has been marked as a duplicate of bug 27775 ***
Thanks for your comment.
But actually my intention is to remove the element from Layout. But, if I use "visibility:hidden" still the space is reserved for it. So it is not acceptable for my case.
Currently thinking to implement RenderNone class, which does nothing for NONE style. Currently in RenderObject.cpp, RenderObject* createObject(Node*, RenderStyle*) method doesn't creating any Renderer and returns 0. So I would like to Implement RenderNone & it simply omits the drawing.
Will it work..?
Expecting your comment.
please help me to fix this issue!!.
Interesting. Somehow FF's behavior is inconsistent with ours, despite not showing display: none plugins.
NPAPI support is removed from Safari 14 onward and it is not supported in Webkit Builds like WebkitGTK as well. I think this can be marked as "RESOLVED WONTFIX". Thanks!
Yup, won't fix.