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: <form enctype="multipart/form-data" onsubmit="myFunction()"> function myFunction() { alert('this works'); myFunctionInterval = setInterval(function() { alert('this does not work'); }, 200); }
Created attachment 15770 [details] Test case from Comment #0 In the future, please attach test cases to the bug for easier testing. Thanks!
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.
<rdar://problem/5376648>
*** Bug 19444 has been marked as a duplicate of this bug. ***
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.