Bug 293584
| Summary: | Manually assigning a file to input.files renders incorrect file name | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Luke Warlow <lwarlow> |
| Component: | Forms | Assignee: | Aditya Keerthi <akeerthi> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | cdumez, simon.fraser, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 18 | ||
| Hardware: | Unspecified | ||
| OS: | macOS 15 | ||
Luke Warlow
If you manually assign input.files in Chromium and Firefox it will render the file name correctly, but if you do this in WebKit it renders "com.apple.WebKit.WebContent.xpc" as the file name.
See https://jsfiddle.net/3d4g0wkq/ when you click the button labeled "Do the thing", the file name updates with the odd file name. The same thing in Firefox shows "hello.txt"
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Luke Warlow
Unable to replicate on iOS simulator, or WebKit GTK so this seems to be a macOS specific bug.
Radar WebKit Bug Importer
<rdar://problem/152048377>
Aditya Keerthi
Pull request: https://github.com/WebKit/WebKit/pull/45946
EWS
Committed 295458@main (17316658e8a0): <https://commits.webkit.org/295458@main>
Reviewed commits have been landed. Closing PR #45946 and removing active labels.