<?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>12417</bug_id>
          
          <creation_ts>2007-01-26 10:15:54 -0800</creation_ts>
          <short_desc>REGRESSION: &quot;Are you sure you want to send a form again?&quot; sheet is displayed twice when resubmitting a form with a modified file</short_desc>
          <delta_ts>2019-06-01 15:38:03 -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>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://validator.w3.org/#validate-by-upload</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>johntrip</cc>
    
    <cc>tom</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32493</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-26 10:15:54 -0800</bug_when>
    <thetext>Summary:

When reloading a page that was the result of a form submission with a file upload(?), the &quot;Are you sure you want to send a form again?&quot; sheet is displayed twice (and must be confirmed twice) before the form is resubmitted.  I suppose this could be considered a dummy-check security feature, but it&apos;s also kind of annoying and a regression from shipping Safari.

Steps to reproduce:

1. Open Safari/WebKit.
2. Visit URL:  http://validator.w3.org/#validate-by-upload
3. Select an HTML file to upload (doesn&apos;t have to pass validation).
4. Click &quot;Check&quot;.
5. After validation page loads, click &quot;Reload&quot; button in Safari.

Expected results:

The &quot;Are you sure you want to send a form again?&quot; sheet should be displayed once so that clicking &quot;Send&quot; resubmits the form.

Actual results:

The &quot;Are you sure you want to send a form again?&quot; sheet is displayed twice, and you must click &quot;Send&quot; twice to resubmit the form.

Regression:

This is a regression from shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).

Tested with a locally-built debug build of WebKit r19151 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).

Notes:

Not tested on Leopard (yet).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32466</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-26 11:16:07 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Steps to reproduce:
&gt; 
&gt; 1. Open Safari/WebKit.
&gt; 2. Visit URL:  http://validator.w3.org/#validate-by-upload
&gt; 3. Select an HTML file to upload (doesn&apos;t have to pass validation).
&gt; 4. Click &quot;Check&quot;.
&gt; 5. After validation page loads, click &quot;Reload&quot; button in Safari.

I left out an important step:  You must modify the file (and save it back to disk) before attempting to reload the form in order to see two sheets.

1. Open Safari/WebKit.
2. Visit URL:  http://validator.w3.org/#validate-by-upload
3. Select an HTML file to upload (doesn&apos;t have to pass validation).
4. Click &quot;Check&quot;.
5. Edit the file that was uploaded in Step 3 and resave it.
6. Click &quot;Reload&quot; button in Safari.

Note that if you get an ASSERTION FAILED crash while trying to reproduce this, that is Bug 9920.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32345</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-26 12:32:37 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Regression:
&gt; 
&gt; This is a regression from shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.8
&gt; (8N1037).
&gt; 
&gt; Tested with a locally-built debug build of WebKit r19151 with Safari 2.0.4
&gt; (419.3) on Mac OS X 10.4.8 (8N1037).

Note that on shipping Safari, the original file contents are resent (not the contents of the changed file) when the form is resent.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31329</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-01-28 15:50:31 -0800</bug_when>
    <thetext>&lt;rdar://problem/4960112&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24479</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Steinacher">tom</who>
    <bug_when>2007-02-10 11:35:19 -0800</bug_when>
    <thetext>When using redirects after submitting the form, the message will be sometimes displayed three times or even more (using multiple redirects).

How to reproduce:
1. Create the following &quot;form.php&quot; on your server:
&lt;p&gt;Hit submit and then reload the page.&lt;/p&gt;
&lt;form action=&quot;form.php&quot; method=&quot;post&quot;&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot;&gt;
&lt;/form&gt;
2. Load the &quot;form.php&quot; in your nightly WebKit and click the submit button.
3. Add the following line at the beginnig of your &quot;form.php&quot;:
&lt;?php sleep(3); if ($_POST[&apos;submit&apos;]) header(&apos;Location: form2.php&apos;); ?&gt;
4. Press Apple+R in WebKit
5. The message will appear twice, and a third time after 3 seconds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24081</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-02-12 01:45:04 -0800</bug_when>
    <thetext>Revision r18011 seems rather suspicious in the context of this bug.  Found it while reviewing r18004:18012 per Bug 12690 Comment #12.

http://trac.webkit.org/projects/webkit/changeset/18011

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23260</commentid>
    <comment_count>6</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2007-02-14 16:14:11 -0800</bug_when>
    <thetext>Committed revision 19632.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>