fix: allow form submission for input [type=image] (#34203)

* fix: allow form submission for input [type=image]

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* Fix comments and use existing can_gc where available

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

---------

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-11-15 01:28:48 +11:00 committed by GitHub
parent 3fd1a229df
commit 313597f325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 75 additions and 145 deletions

View file

@ -10,6 +10,3 @@
[Files in a text/plain form show up as File objects in the "formData" IDL attribute]
expected: FAIL
[The constructed FormData object should not contain an entry for the image submit button that was used to submit the form.]
expected: FAIL

View file

@ -1,19 +0,0 @@
[form-submission-algorithm.html]
expected: TIMEOUT
[Submission URL should always have a non-null query part]
expected: NOTRUN
[firing an event named submit; clicking an image button]
expected: TIMEOUT
[firing an event named submit; form.requestSubmit()]
expected: NOTRUN
[firing an event named submit; form.requestSubmit(null)]
expected: NOTRUN
[firing an event named submit; form.requestSubmit(submitter)]
expected: NOTRUN
[Cannot navigate (after constructing the entry list)]
expected: NOTRUN