<?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>33513</bug_id>
          
          <creation_ts>2010-01-11 21:41:25 -0800</creation_ts>
          <short_desc>Submit form failed in onsubmit handler!</short_desc>
          <delta_ts>2014-02-03 09:58:40 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.sina.com.cn</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>39021</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="wesleyZeng">weihong.zeng</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>deepak.deepakmittal</cc>
    
    <cc>dglazkov</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>179672</commentid>
    <comment_count>0</comment_count>
    <who name="wesleyZeng">weihong.zeng</who>
    <bug_when>2010-01-11 21:41:25 -0800</bug_when>
    <thetext>If submitting a form in onsubmit handler, the submitting may be failed!
Bug&apos;s source: open www.sina.com.cn, loginin free email.

Test case like this:

&lt;script&gt;
function chkLogin(){
	
   document.showLogin.submit(); // note
   document.showLogin.password.value = &quot;&quot;;

   return false;
}
&lt;/script&gt;
	
&lt;form name=&quot;showLogin&quot; method=&quot;post&quot; action=&quot;test.php&quot; onsubmit=&quot;return chkLogin();&quot; target=&quot;_blank&quot;&gt; 
UserName:&lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&quot; /&gt;&lt;br&gt;
Password:&lt;input name=&quot;password&quot; type=&quot;password&quot; /&gt;&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Login&quot; /&gt;&lt;br&gt;
&lt;/form&gt;

After chkLogin is executed, the password is empty and HTMLFormElement executes real submiting action after dispatching sumbit event, so the submitting failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179923</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-01-12 11:56:30 -0800</bug_when>
    <thetext>See also: bug 11420, bug 13012.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837267</commentid>
    <comment_count>2</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2013-02-20 01:46:32 -0800</bug_when>
    <thetext>&lt;rdar://problem/9655767&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>974975</commentid>
    <comment_count>3</comment_count>
    <who name="Deepak Mittal">deepak.deepakmittal</who>
    <bug_when>2014-02-03 02:22:31 -0800</bug_when>
    <thetext>Hi,

I have checked this on the latest code, while choosing &quot;Login&quot; in the new window test.php will get loaded, and in the previous window Password field is empty, That is I think is intended behavior.


Please verify on latest and confirm..

Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>