<?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>24346</bug_id>
          
          <creation_ts>2009-03-04 02:02:58 -0800</creation_ts>
          <short_desc>Remove Gears workaround in HTMLObjectElement.cpp</short_desc>
          <delta_ts>2010-11-29 08:47:22 -0800</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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Jeremy Moskovich">playmobil</reporter>
          <assigned_to name="Jeremy Moskovich">playmobil</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dglazkov</cc>
    
    <cc>eric</cc>
    
    <cc>jorlow</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112168</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Moskovich">playmobil</who>
    <bug_when>2009-03-04 02:02:58 -0800</bug_when>
    <thetext>This bug is to track removal of the temporary workaround for Gears compatibility in WebKit (see https://bugs.webkit.org/show_bug.cgi?id=24215).

Closing this bug should involve removing the workaround in favor of a long term solution.

The underlying problem is that current users of gears use a standard gears_init.js that relies on a plugin loading if it&apos;s display attribute is set to hidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272707</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-09-01 02:23:07 -0700</bug_when>
    <thetext>What&apos;s the status here?  This code is still in the codebase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272811</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-09-01 08:19:44 -0700</bug_when>
    <thetext>The plan is to make plugins not go away when an element has display:none. Not sure if we have a bugzilla bug on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>272914</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-09-01 11:35:47 -0700</bug_when>
    <thetext>See bug 27775.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314326</commentid>
    <comment_count>4</comment_count>
      <attachid>75005</attachid>
    <who name="Jeremy Moskovich">playmobil</who>
    <bug_when>2010-11-29 02:55:34 -0800</bug_when>
    <thetext>Created attachment 75005
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314397</commentid>
    <comment_count>5</comment_count>
      <attachid>75005</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-29 07:25:35 -0800</bug_when>
    <thetext>Comment on attachment 75005
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=75005&amp;action=review

I think we can safely remove the entire rendererIsNeeded() call.  I don&apos;t see any parent implementations preventing creation of renderers when a document doesn&apos;t have a frame, but I believe that to be the case.  Frameless documents won&apos;t have a FrameView, thus won&apos;t be rendered is my understanding.  I think this whole override can be removed unless we have a test which proves otherwise.

&gt; WebCore/html/HTMLObjectElement.cpp:289
&gt;      if (!frame)
&gt;          return false;

Are we sure this is still needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314399</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-11-29 07:31:20 -0800</bug_when>
    <thetext>I&apos;d rather see you commit this by hand and remove the whole function (or post a new patch to do so).  I don&apos;t believe the !frame check has any utility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314401</commentid>
    <comment_count>7</comment_count>
    <who name="Jeremy Moskovich">playmobil</who>
    <bug_when>2010-11-29 07:35:13 -0800</bug_when>
    <thetext>I&apos;m not familiar with the surrounding code, I&apos;m just removing the workaround I put in.

I&apos;d prefer for more ambitious cleanups to be done by other people who have better knowledge of the area.  Does that sound OK?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314410</commentid>
    <comment_count>8</comment_count>
      <attachid>75005</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 07:52:04 -0800</bug_when>
    <thetext>Comment on attachment 75005
Patch

Clearing flags on attachment: 75005

Committed r72799: &lt;http://trac.webkit.org/changeset/72799&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314411</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-11-29 07:52:11 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>314444</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-11-29 08:47:22 -0800</bug_when>
    <thetext>I&apos;m confused. Bug 27775 is not fixed. Was Gears changed to avoid this issue?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>75005</attachid>
            <date>2010-11-29 02:55:34 -0800</date>
            <delta_ts>2010-11-29 07:52:04 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-24346-20101129125533.patch</filename>
            <type>text/plain</type>
            <size>1564</size>
            <attacher name="Jeremy Moskovich">playmobil</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIG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