<?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>3791</bug_id>
          
          <creation_ts>2005-07-01 09:51:52 -0700</creation_ts>
          <short_desc>Events created in popups fail to fire after popup closed</short_desc>
          <delta_ts>2008-02-22 16:02:12 -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>JavaScriptCore</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.clawbox.com/misc/testcase.html</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="Christopher Lord">christopherlord</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          <cc>ian</cc>
    
    <cc>list</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13601</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Lord">christopherlord</who>
    <bug_when>2005-07-01 09:51:53 -0700</bug_when>
    <thetext>An event attached via javascript to a page object inside a popup only fires so long as the popup remains 
open. Other data and objects created in this manner work correctly. URL points to a test case which 
demonstrates. 

Reproduce: Click &apos;Add Item Via Popup&apos;, add some data (to identify your new item), and click the button. 
The originating form gains a new button and your string. Switch from popup (leave open) open and click 
remove. The row should go away. Now repeat, but close popup before clicking remove. Safari will no 
longer remove the row, but no error is reported in js console. 

Test case works in Firefox for Mac.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13602</commentid>
    <comment_count>1</comment_count>
      <attachid>2730</attachid>
    <who name="Christopher Lord">christopherlord</who>
    <bug_when>2005-07-01 09:53:18 -0700</bug_when>
    <thetext>Created attachment 2730
demonstrates the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13606</commentid>
    <comment_count>2</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2005-07-01 11:12:26 -0700</bug_when>
    <thetext>Confirmed, very good testcase!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54108</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-08-28 22:12:50 -0700</bug_when>
    <thetext>See also: bug 7783.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54448</commentid>
    <comment_count>4</comment_count>
    <who name="Olaf Gleba">list</who>
    <bug_when>2006-10-05 03:14:41 -0700</bug_when>
    <thetext>Thank you for finding out. I was working on that. This bug is a killer in deed. Hopefully this will be fixed as soon as possible, cause this function is in use on a regular bases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19173</commentid>
    <comment_count>5</comment_count>
    <who name="Olaf Gleba">list</who>
    <bug_when>2007-03-13 01:29:17 -0700</bug_when>
    <thetext>As there is no change in the status since the bug reported, i wonder if there is any chance to fix this bug within a reasonably period? This bug simply means, for example, our Web 2.0 CMS is dead on Safari. Would be a shame.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70463</commentid>
    <comment_count>6</comment_count>
    <who name="Khoo Yit Phang">khooyp</who>
    <bug_when>2008-02-12 17:07:12 -0800</bug_when>
    <thetext>Just browsing around, but it seems that this bug has been fixed? The test page seems to work fine with the nightly revision 30153.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71523</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2008-02-22 16:02:12 -0800</bug_when>
    <thetext>This is fixed (per reduction) as of a local debug build of WebKit r30458.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2730</attachid>
            <date>2005-07-01 09:53:18 -0700</date>
            <delta_ts>2005-07-01 09:53:18 -0700</delta_ts>
            <desc>demonstrates the problem</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>1630</size>
            <attacher name="Christopher Lord">christopherlord</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPjxoZWFkPgoKPGJvZHk+CjxoMT5KYXZhc2NyaXB0IG9uY2xpY2sgYnVnPC9o
MT4KPGgzPkRlc2NyaXB0aW9uOjwvaDM+Cgo8cD5FdmVudHMgd2hpY2ggYXJlIGJvdW5kIGF0IHJ1
bnRpbWUgaW4gcG9wdXBzIGFuZCBzdG9yZWQgaW4gdGhlIG9wZW5pbmcgd2luZG93Cm5vIGxvbmdl
ciBmaXJlIHdoZW4gc2FpZCBwb3B1cCBpcyBjbG9zZWQuIDwvcD4KCjxzY3JpcHQgbGFuZ3VhZ2U9
ImphdmFzY3JpcHQiPgpmdW5jdGlvbiBhZGRpdGVtKHdpbmQpewogICAgdmFyIHRlc3RhcmVhID0g
ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInRlc3RhcmVhIik7CiAgICB2YXIgbmV3aXRlbSA9IGRv
Y3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpOwogICAgdmFyIHNwYW4gPSBkb2N1bWVudC5jcmVh
dGVFbGVtZW50KCdzcGFuJyk7CiAgICB2YXIgcmVtb3ZlYnV0dG9uID0gZG9jdW1lbnQuY3JlYXRl
RWxlbWVudCgnaW5wdXQnKTsKCiAgICBpZiAod2luZCAhPSB3aW5kb3cpIHsKICAgICAgICAvLyBq
dXN0IHRvIGRlbW9uc3RyYXRlIHRoYXQgb25seSBwb3B1cCByb3dzIGFyZSB1bnJlbW92YWJsZSBp
biBzYWZhcmkKICAgICAgICBzcGFuLmlubmVySFR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