<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>68072</bug_id>
          
          <creation_ts>2011-09-14 02:39:55 -0700</creation_ts>
          <short_desc>display:none plugins cannot be accessed via script (disagrees with firefox)</short_desc>
          <delta_ts>2022-06-22 22:18:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>27775</dependson>
    
    <dependson>45049</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ssseintr">ssseintr2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>eric</cc>
    
    <cc>mario.bensi</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>466943</commentid>
    <comment_count>0</comment_count>
    <who name="ssseintr">ssseintr2</who>
    <bug_when>2011-09-14 02:39:55 -0700</bug_when>
    <thetext>Dear Webkit Team,

Thanks for your continuous effort to making Webkit Great!!!.

Currently I&apos;m involving plugin development based on npapi. I&apos;m getting problem while using &quot;display: none&quot; style on &lt;object&gt; element to remove the plugin in the HTML layouting.

For example,
&lt;div style=&quot;visibility: hidden; display: none;&quot;&gt;
&lt;object type=&quot;application/x-shockwave-flash&quot; id=&quot;test&quot;&gt;&lt;/object&gt;
&lt;/div&gt;.
 
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 &quot;display: none&quot;, I can able access from JS. 

Actually my intention is to remove the Object Element from layout, but still I need use it&apos;s functionality.

Please refer the attachment for sample script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>466949</commentid>
    <comment_count>1</comment_count>
      <attachid>107313</attachid>
    <who name="ssseintr">ssseintr2</who>
    <bug_when>2011-09-14 02:41:56 -0700</bug_when>
    <thetext>Created attachment 107313
Sample Script to Access Plugin Functionality from JS while it is styled with &quot;display:none&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467073</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-09-14 09:33:10 -0700</bug_when>
    <thetext>You should be able to use visibility:hidden without display:none for now.

*** This bug has been marked as a duplicate of bug 27775 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467707</commentid>
    <comment_count>3</comment_count>
    <who name="ssseintr">ssseintr2</who>
    <bug_when>2011-09-15 01:59:13 -0700</bug_when>
    <thetext>Hi,

Thanks for your comment.

But actually my intention is to remove the element from Layout. But, if I use &quot;visibility:hidden&quot; 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&apos;t creating any Renderer and returns 0. So I would like to Implement RenderNone &amp; it simply omits the drawing. 

Will it work..?

Expecting your comment.

Regards,
Vicky</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481516</commentid>
    <comment_count>4</comment_count>
    <who name="ssseintr">ssseintr2</who>
    <bug_when>2011-10-11 01:57:47 -0700</bug_when>
    <thetext>hi all!!!

Any updates..?

please help me to fix this issue!!. 

regards,
vicky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518566</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-12-09 15:14:33 -0800</bug_when>
    <thetext>Interesting.  Somehow FF&apos;s behavior is inconsistent with ours, despite not showing display: none plugins.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877477</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-22 16:24:42 -0700</bug_when>
    <thetext>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 &quot;RESOLVED WONTFIX&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1877560</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-06-22 22:18:48 -0700</bug_when>
    <thetext>Yup, won&apos;t fix.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>107313</attachid>
            <date>2011-09-14 02:41:56 -0700</date>
            <delta_ts>2011-09-14 02:41:56 -0700</delta_ts>
            <desc>Sample Script to Access Plugin Functionality from JS while it is styled with &quot;display:none&quot;</desc>
            <filename>hidden-plugin.html</filename>
            <type>text/html</type>
            <size>0</size>
            <attacher name="ssseintr">ssseintr2</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>