<?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>15652</bug_id>
          
          <creation_ts>2007-10-23 17:33:32 -0700</creation_ts>
          <short_desc>WebKit fires an unload event when an iframe element is removed from the DOM; other browsers don&apos;t.</short_desc>
          <delta_ts>2016-04-11 02:08:04 -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>Page Loading</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>13574</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Decker">kdecker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cshu</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>rboucher</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
    
    <cc>tom</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59284</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Decker">kdecker</who>
    <bug_when>2007-10-23 17:33:32 -0700</bug_when>
    <thetext>Safari fires an unload event when an iframe element is removed from the DOM; other browsers don&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361383</commentid>
    <comment_count>1</comment_count>
      <attachid>84524</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-03-02 23:24:00 -0800</bug_when>
    <thetext>Created attachment 84524
test case

It looks like Opera and IE do not fire unload, but WebKit and Gecko do. Noone appears to fire beforeunload (unless my test is borked). I&apos;d be OK with making WebKit match IE if we dont&apos; believe there to be a compatibility concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>389440</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-04-20 12:41:56 -0700</bug_when>
    <thetext>This bug may block the 53031 as the current work in progress patch there hits a crash on editing/style/iframe-onload-crash-mac.html</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>84524</attachid>
            <date>2011-03-02 23:24:00 -0800</date>
            <delta_ts>2011-03-02 23:24:00 -0800</delta_ts>
            <desc>test case</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>266</size>
            <attacher name="Ojan Vafai">ojan</attacher>
            
              <data encoding="base64">PGlmcmFtZSBzcmM9ImFib3V0OmJsYW5rIj48L2lmcmFtZT4KPHNjcmlwdD4KdmFyIGlmciA9IGRv
Y3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2lmcmFtZScpOwppZnIuY29udGVudFdpbmRvdy5vbmJlZm9y
ZXVubG9hZCA9IGZ1bmN0aW9uKCkgeyBhbGVydCgnYmVmb3JldW5sb2FkJykgfTsKaWZyLmNvbnRl
bnRXaW5kb3cub251bmxvYWQgPSBmdW5jdGlvbigpIHsgYWxlcnQoJ3VubG9hZCcpIH07Cmlmci5w
YXJlbnROb2RlLnJlbW92ZUNoaWxkKGlmcik7Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>