Bug 229660 - SubmitEvent.submitter property isn't set for <button type="submit">
Summary: SubmitEvent.submitter property isn't set for <button type="submit">
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 202978
  Show dependency treegraph
 
Reported: 2021-08-29 17:38 PDT by Gilmore Davidson
Modified: 2021-08-30 11:31 PDT (History)
14 users (show)

See Also:


Attachments
Reduced test case (1.54 KB, text/html)
2021-08-29 17:38 PDT, Gilmore Davidson
no flags Details
Patch (4.15 KB, patch)
2021-08-30 08:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gilmore Davidson 2021-08-29 17:38:02 PDT
Created attachment 436753 [details]
Reduced test case

I was testing out the new `SubmitEvent` interface implemented in Bug 202978, using Tech Preview 130. It appears to only be filling in the `submitter` property when a form is submitted with `<input type="submit">` but not `<button type="submit">`.

I've attached a simple HTML page that shows the problem. All the test cases work correctly in Chrome and Firefox, but the `<button type="submit">` case fails in Safari Tech Preview 130. I tried to test the latest raw WebKit build but couldn't run it due to Bug 228060.
Comment 1 Chris Dumez 2021-08-30 08:11:18 PDT
Thanks for the bug report and the test case. I'll fix.
Comment 2 Chris Dumez 2021-08-30 08:24:14 PDT
Created attachment 436775 [details]
Patch
Comment 3 EWS 2021-08-30 11:30:30 PDT
Committed r281770 (241107@main): <https://commits.webkit.org/241107@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 436775 [details].
Comment 4 Radar WebKit Bug Importer 2021-08-30 11:31:19 PDT
<rdar://problem/82538108>