<?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>13474</bug_id>
          
          <creation_ts>2007-04-24 17:29:45 -0700</creation_ts>
          <short_desc>Can&apos;t use javascript to close window following iframe post</short_desc>
          <delta_ts>2009-10-14 07:20:21 -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>JavaScriptCore</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="James Berry">james</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>tvignaud</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12830</commentid>
    <comment_count>0</comment_count>
    <who name="James Berry">james</who>
    <bug_when>2007-04-24 17:29:45 -0700</bug_when>
    <thetext>Normally, one can use javascript to close a window as long as the window was opened by following a link. But in Safari (and all WebKit versions to date) this fails after a get or post operation that targets an iframe within the window.

Note that this is an important operation, as it would be used in an image upload window, for instance, where the post through the hidden iframe is used to submit an image.

This same operation succeeds in FireFox, IE6, and IE7.

Attached is a simple html file page that will allow you to reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12831</commentid>
    <comment_count>1</comment_count>
      <attachid>14162</attachid>
    <who name="James Berry">james</who>
    <bug_when>2007-04-24 17:31:07 -0700</bug_when>
    <thetext>Created attachment 14162
Page that demonstrates the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12832</commentid>
    <comment_count>2</comment_count>
    <who name="James Berry">james</who>
    <bug_when>2007-04-24 17:32:36 -0700</bug_when>
    <thetext>If you there is a workaround for this bug, I&apos;d love to hear about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71887</commentid>
    <comment_count>3</comment_count>
    <who name="James Berry">james</who>
    <bug_when>2008-02-25 09:52:32 -0800</bug_when>
    <thetext>I can no longer replicate this bug, and presume it to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154569</commentid>
    <comment_count>4</comment_count>
    <who name="Thierry Vignaud">tvignaud</who>
    <bug_when>2009-10-14 07:20:21 -0700</bug_when>
    <thetext>Still valid as of webkit-1.1.15.1 (as tested with midori-0.1.10 or the perl Gtk2-WebKit binding).
Probably related to bug #16401</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14162</attachid>
            <date>2007-04-24 17:31:07 -0700</date>
            <delta_ts>2007-04-24 17:31:07 -0700</delta_ts>
            <desc>Page that demonstrates the bug.</desc>
            <filename>iframepost.html</filename>
            <type>text/html</type>
            <size>1009</size>
            <attacher name="James Berry">james</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KCTxoMT5CdWc8L2gxPgoJPHA+T25jZSBvbmUgcG9zdHMgdG8gYW4gaWZy
YW1lIGluIGEgd2luZG93LCBpdCBpcyBubyBsb25nZXIgcG9zc2libGUgdG8KCXByb2dyYW1hdGlj
YWxseSBjbG9zZSB0aGUgd2luZG93PC9wPgoJCgk8cD5UaGUgY2xvc2Ugb3BlcmF0aW9uIGlzIGFs
bG93ZWQgaW4gdGhpcyBzYW1lIHNpdHVhdGlvbiBieSBGaXJlRm94LCBJRTYsIGFuZCBJRTcuPC9w
PgoJCgk8aDE+VG8gUmVwcm9kd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