<?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>14828</bug_id>
          
          <creation_ts>2007-07-31 10:38:40 -0700</creation_ts>
          <short_desc>All Javascript that should run after a form has been submitted does not run</short_desc>
          <delta_ts>2012-09-06 17:30:37 -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>WebCore JavaScript</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephen">teevio</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>sunhwanj</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3361</commentid>
    <comment_count>0</comment_count>
    <who name="Stephen">teevio</who>
    <bug_when>2007-07-31 10:38:40 -0700</bug_when>
    <thetext>Once the initial onSubmit JS has been executed, any JS after that will not run (works fine in Firefox, IE6, IE7).  This is specifically more crippling with the introduction of PHP 5.2 and its ability to return fileupload progress information via XMLHTTP Requests.

Steps to reproduce:
1)  Attach an onSubmit function to a form.
2)  In that function set an interval that will run a chunk of code.
3)  The code in the set interval will not execute.

Code example:
&lt;form enctype=&quot;multipart/form-data&quot; onsubmit=&quot;myFunction()&quot;&gt;

function myFunction()
{
  alert(&apos;this works&apos;);

  myFunctionInterval = setInterval(function()
  {
    alert(&apos;this does not work&apos;);
  }, 200);
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3262</commentid>
    <comment_count>1</comment_count>
      <attachid>15770</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-31 23:25:26 -0700</bug_when>
    <thetext>Created attachment 15770
Test case from Comment #0

In the future, please attach test cases to the bug for easier testing.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3264</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-31 23:28:23 -0700</bug_when>
    <thetext>Confirmed with a local debug build of WebKit r24792 with Safari 3 Public Beta v. 3.0.2 (522.12) on Mac OS X 10.4.10 (8R218).

Both Firefox 2.0.0.6 and Opera 9.21 show both alerts in the test case.

This is not a regression as Safari 2.0.4 (419.3) with its original WebKit behaves the same way as the newer Safari/WebKit.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3284</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-08-01 05:41:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/5376648&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>308686</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-11-12 12:13:38 -0800</bug_when>
    <thetext>*** Bug 19444 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>713894</commentid>
    <comment_count>5</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2012-09-06 17:28:30 -0700</bug_when>
    <thetext>Our behaviour here appears to matches Firefox, Opera, Chrome – if you still see a bug, please attach a new test case that better demonstrates the problem.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15770</attachid>
            <date>2007-07-31 23:25:26 -0700</date>
            <delta_ts>2007-07-31 23:25:26 -0700</delta_ts>
            <desc>Test case from Comment #0</desc>
            <filename>bug-14828-test.html</filename>
            <type>text/html</type>
            <size>283</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KZnVuY3Rpb24gbXlGdW5jdGlvbigpCnsKICBhbGVydCgndGhpcyB3b3JrcycpOwoK
ICBteUZ1bmN0aW9uSW50ZXJ2YWwgPSBzZXRJbnRlcnZhbChmdW5jdGlvbigpCiAgewogICAgYWxl
cnQoJ3RoaXMgZG9lcyBub3Qgd29yaycpOwogIH0sIDIwMCk7Cn0KPC9zY3JpcHQ+Cjxmb3JtIGVu
Y3R5cGU9Im11bHRpcGFydC9mb3JtLWRhdGEiIG9uc3VibWl0PSJteUZ1bmN0aW9uKCkiPgo8aW5w
dXQgdHlwZT0ic3VibWl0IiBuYW1lPSJTdWJtaXQiIHZhbHVlPSJTdWJtaXQiPgo8L2Zvcm0+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>