<?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>6926</bug_id>
          
          <creation_ts>2006-01-29 21:25:30 -0800</creation_ts>
          <short_desc>iframe.contentDocument returns &apos;undefined&apos; when hidden by style &apos;display: none&apos; (Bugzilla &quot;Edit Attachment As Comment&quot; feature does not work)</short_desc>
          <delta_ts>2016-09-26 09:28:14 -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>DOM</component>
          <version>417.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=107236</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=13118</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bugs-webkit</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30591</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-01-29 21:25:30 -0800</bug_when>
    <thetext>Steps to reproduce:

1. Open Bug 6900.
2. Click on &quot;Edit&quot; link next to patch attachment.
3. Click on &quot;Edit Attachment As Comment&quot;.

Expected:

The &quot;Comment (on the bug)&quot; textarea is hidden and the diff in the window is replaced by the same diff with quote (&quot;&gt;&quot;) characters on the first line.  (See behavior in Firefox 1.5.)

Actual:

A JavaScript error occurs (see JavaScript Console):

Undefined value
http://bugzilla.opendarwin.org/attachment.cgi?id=6062&amp;action=edit
Line: 235</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30592</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-01-29 21:30:04 -0800</bug_when>
    <thetext>Note that other types of attachments (such as text/html) behave differently, although they still don&apos;t work as expected, either.  See Bug 6916 for a text/html attachment.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31388</commentid>
    <comment_count>2</comment_count>
      <attachid>6256</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-04 21:08:47 -0800</bug_when>
    <thetext>Created attachment 6256
Test case

An &lt;iframe&gt;&lt;/iframe&gt; element that is hidden with style &quot;display: none;&quot; still has content, but iframeElement.contentDocument returns an undefined value when the iframe is hidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31389</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-02-04 21:13:28 -0800</bug_when>
    <thetext>Updating Summary to match the issue.  Changed NeedsReduction keyword to HasReduction.

Same bug occurs in Safari 2.0.3 (417.8) on 10.4.4, so it&apos;s not a regression.

Test case works in Firefox 1.5.0.1.  MSIE 6 does not have an XMLSerializer object, so this feature of Bugzilla is not even enabled in it.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31400</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-02-05 00:06:08 -0800</bug_when>
    <thetext>Sounds closely related to bug 3581. I&apos;m re-adding the original summary, to make this issue easier to find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45314</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-06-11 05:12:30 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Steps to reproduce:
&gt; 
&gt; 1. Open Bug 6900.
&gt; 2. Click on &quot;Edit&quot; link next to patch attachment.
&gt; 3. Click on &quot;Edit Attachment As Comment&quot;.

The current version of Bugzilla on http://bugzilla.opendarwin.org/ seems to have worked around this Safari issue.  However, the test case (Attachment 6256) still does not work in WebKit r14810 today.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39855</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-12-24 17:55:22 -0800</bug_when>
    <thetext>This was fixed a while ago.  Not sure what fixed it, though.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39830</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-24 21:32:25 -0800</bug_when>
    <thetext>Probably, bug 3581.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6256</attachid>
            <date>2006-02-04 21:08:47 -0800</date>
            <delta_ts>2006-02-04 21:08:47 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>bug-6926-test.html</filename>
            <type>text/html</type>
            <size>745</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">PHNjcmlwdCBsYW5ndWFnZT0iamF2YXNjcmlwdCI+CjwhLS0KZnVuY3Rpb24gZWRpdEFzQ29tbWVu
dCgpIHsKICAgICAgdmFyIHZpZXdGcmFtZSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCd2aWV3
RnJhbWUnKTsKICAgICAgdmFyIGFTZXJpYWxpemVyID0gbmV3IFhNTFNlcmlhbGl6ZXIoKTsKICAg
ICAgdmFyIGNvbnRlbnREb2N1bWVudCA9IHZpZXdGcmFtZS5jb250ZW50RG9jdW1lbnQ7CiAgICAg
IHZhciB0aGVDb250ZW50ID0gYVNlcmlhbGl6ZXIuc2VyaWFsaXplVG9TdHJpbmcoY29udGVudERv
Y3VtZW50KTsKCiAgICAgIHZhciBlZGl0RnJhbWUgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgn
ZWRpdEZyYW1lJyk7CiAgICAgIGVkaXRGcmFtZS52YWx1ZSA9IHRoZUNvbnRlbnQ7Cn0KLy8tLT4K
PC9zY3JpcHQ+CjxidXR0b24gb25jbGljaz0iZWRpdEFzQ29tbWVudCgpOyI+UG9wdWxhdGUgVGV4
dGFyZWEgd2l0aCBJZnJhbWUgY29udGVudDwvYnV0dG9uPgo8dGV4dGFyZWEgaWQ9ImVkaXRGcmFt
ZSIgbmFtZT0iY29tbWVudCIgc3R5bGU9ImhlaWdodDogNDAwcHg7IHdpZHRoOiAxMDAlOyIgY29s
cz0iODAiIHdyYXA9InNvZnQiPjwvdGV4dGFyZWE+CjxpZnJhbWUgaWQ9InZpZXdGcmFtZSIgc3Jj
PSJodHRwOi8vYnVnemlsbGEub3BlbmRhcndpbi5vcmcvYXR0YWNobWVudC5jZ2k/aWQ9NjA5NSIg
c3R5bGU9ImhlaWdodDogNDAwcHg7IHdpZHRoOiAxMDAlOyBkaXNwbGF5OiBub25lOyI+PC9pZnJh
bWU+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>