fix: File to FormData not correctly handling name and lastModified (#36458)

Set File's lastModified when reconstructing from Blob for FormData
Remove special character replacement in fileName (spec removed this
step)

Testing: WPT tests exist
Fixes: #22744 (if I undertand the issue correctly the filename issue was
already fixed and now this fixes the lastModified part)

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2025-04-11 12:59:03 -05:00 committed by GitHub
parent 5c7cf7aed6
commit 2d2cfade36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 21 deletions

View file

@ -1,8 +0,0 @@
[File-constructor.any.html]
[No replacement when using special character in fileName]
expected: FAIL
[File-constructor.any.worker.html]
[No replacement when using special character in fileName]
expected: FAIL