<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18391</bug_id>
          
          <creation_ts>2012-07-25 08:46:25 +0000</creation_ts>
          <short_desc>&quot;If target browsing context was created in the previous step, or if the form document has not yet completely loaded, then let replace be true. Otherwise, let it be false.&quot; - this is wrong in the context of user initiated submits. No browser I&apos;ve tested wi</short_desc>
          <delta_ts>2012-12-30 04:15:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#sandboxSubmitBlocked</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bratell</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71436</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-25 08:46:25 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#sandboxSubmitBlocked
Complete: http://www.whatwg.org/c#sandboxSubmitBlocked

Comment:
&quot;If target browsing context was created in the previous step, or if the form
document has not yet completely loaded, then let replace be true. Otherwise,
let it be false.&quot; - this is wrong in the context of user initiated submits. No
browser I&apos;ve tested with (Opera, Chrome, Firefox) replaces the current
document if you submit the form manually before the current page has completed
loading. This should probably be limited to just automatic form submits.

Posted from: 2001:4c28:a030:30:99e1:e72f:ece9:92b5
User agent: Opera/9.80 (Windows NT 6.1; WOW64; U; en) Presto/2.10.289 Version/12.00</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75100</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-02 19:40:37 +0000</bug_when>
    <thetext>Do you have a test case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75110</commentid>
    <comment_count>2</comment_count>
      <attachid>1197</attachid>
    <who name="Daniel Bratell">bratell</who>
    <bug_when>2012-10-02 20:40:25 +0000</bug_when>
    <thetext>Created attachment 1197
Attempted testcase/demo

Added a testcase &quot;slowloading.html&quot; but it&apos;s not very good since it&apos;s hard to ensure that the page loads slowly enough that the tester has time to click &quot;submit&quot; before the page completed loading. Apart from that the testcase is just:

&lt;body&gt;
Click on &quot;SUBMIT&quot; before this page has completely loaded and then go back in the browser.&lt;br&gt;
PASS if you see this page when going back.&lt;br&gt;
FAIL if you return to the page before this or if you can&apos;t see another page.&lt;br&gt;

&lt;form action=&quot;data:text/html,Now click back&quot;&gt;&lt;input type=&quot;submit&quot;&gt;&lt;/form&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80700</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-30 04:13:35 +0000</bug_when>
    <thetext>Ok, I&apos;ve changed the spec to only do this if the form is submitted via submit(). Note that this means it doesn&apos;t happen on submitButton.click() submissions. We&apos;ll see if that&apos;s a problem, I guess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80701</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-12-30 04:15:35 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7610.
Check-in comment: Make submissions during page load not triggered by the submit() method not replace the current page.
http://html5.org/tools/web-apps-tracker?from=7609&amp;to=7610</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1197</attachid>
            <date>2012-10-02 20:40:25 +0000</date>
            <delta_ts>2012-10-02 20:40:25 +0000</delta_ts>
            <desc>Attempted testcase/demo</desc>
            <filename>slowloading.html</filename>
            <type>text/html</type>
            <size>649</size>
            <attacher name="Daniel Bratell">bratell</attacher>
            
              <data encoding="base64">PGJvZHk+DQogIDxvbD48bGk+Q2xpY2sgb24gIlNVQk1JVCIgYmVmb3JlIHRoaXMgcGFnZSBoYXMg
Y29tcGxldGVseSBsb2FkZWQgYW5kIHRoZW4gZ28gYmFjayBpbiB0aGUgYnJvd3Nlci4NCiAgICAg
IDx1bD48bGk+UEFTUyBpZiB5b3Ugc2VlIHRoaXMgcGFnZSB3aGVuIGdvaW5nIGJhY2suDQogICAg
ICAgIDxsaT5GQUlMIGlmIHlvdSByZXR1cm4gdG8gdGhlIHBhZ2UgYmVmb3JlIHRoaXMgb3IgaWYg
eW91IGNhbid0IHNlZSBhbm90aGVyIHBhZ2UuDQogICAgICA8L3VsPg0KPC91bD4NCiAgPGZvcm0g
YWN0aW9uPSJkYXRhOnRleHQvaHRtbCxOb3cgY2xpY2sgYmFjayI+PGlucHV0IHR5cGU9InN1Ym1p
dCI+PC9mb3JtPg0KICA8IS0tIFN0dWZmIHRvIG1ha2UgdGhlIGxvYWQgc2xvdyBlbm91Z2ggdG8g
Z2l2ZSB0aGUgdXNlciB0aW1lIHRvIGNsaWNrIHN1Ym1pdCAtLT4NCjxpZnJhbWUgc3R5bGU9ImRp
c3BsYXk6bm9uZSIgc3JjPSJodHRwOi8vd3d3LmphcGFudGltZXMuY28uanAvIj48L2lmcmFtZT4N
CjxpZnJhbWUgc3R5bGU9ImRpc3BsYXk6bm9uZSIgc3JjPSJodHRwOi8vbmV3cy5iYmMuY28udWsv
Ij48L2lmcmFtZT4NCjxpZnJhbWUgc3R5bGU9ImRpc3BsYXk6bm9uZSIgc3JjPSJodHRwOi8vd3d3
LmNubi5jb20vIj48L2lmcmFtZT4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>