[Webkit-unassigned] [Bug 234069] A FormData constructed in the form's submit event listener shouldn't include the submitter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 1 23:36:59 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=234069

Aditya Keerthi <akeerthi at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |akeerthi at apple.com

--- Comment #5 from Aditya Keerthi <akeerthi at apple.com> ---
This change is being reverted in https://bugs.webkit.org/show_bug.cgi?id=236006 as it broke form submission for forms containing multiple <input type="image">.

This is the failure scenario:

```
<form enctype="multipart/form-data" method="post">
  <input name="foo" type="image" alt="foo">
  <input name="bar" type="image" alt="bar">
</form>
```

Before this change, the following (correct) request was generated:

```
------WebKitFormBoundaryPAHF32AEjrF9R0YH
Content-Disposition: form-data; name="bar.x"

10
------WebKitFormBoundaryPAHF32AEjrF9R0YH
Content-Disposition: form-data; name="bar.y"

4
------WebKitFormBoundaryPAHF32AEjrF9R0YH--
```

After the change, the following (incorrect) request was generated:

```
------WebKitFormBoundaryRa2do7IyOliqOhG6
Content-Disposition: form-data; name="foo.x"

0
------WebKitFormBoundaryRa2do7IyOliqOhG6
Content-Disposition: form-data; name="foo.y"

0
------WebKitFormBoundaryRa2do7IyOliqOhG6--
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220202/a88407be/attachment.htm>


More information about the webkit-unassigned mailing list