Form submission reentrancy protection for 'submit' and 'invalid' event
Categories
(Core :: DOM: Forms, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: tkent, Assigned: jdai)
References
()
Details
Attachments
(3 files)
HTML Specification PR: https://github.com/whatwg/html/pull/4621
Test PR: https://github.com/web-platform-tests/wpt/pull/16811
Firefox fails with the second test case in html/semantics/forms/form-submission-0/form-submission-algorithm.html . Firefox's <form> implementation must have a flag to prevent reentrancy by 'submit' event. The flag should be expanded to cover form interactive validation.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Put into my queue, I'll take care of this.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Use mIsFiringSubmissionEvents
to implement firing submission events
boolean in specification.
Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Comment 10•5 years ago
|
||
Backed out 3 changesets (bug 1551758) for causing wpt failures on form-submission-algorithm.html. CLOSED TREE
Backout revision https://hg.mozilla.org/integration/autoland/rev/b5884cc109b5ff0772f37f5973045f7a9d68c75e
Failure logs https://treeherder.mozilla.org/logviewer.html#?job_id=277190159&repo=autoland
John can you please take a look?
Assignee | ||
Comment 12•5 years ago
|
||
(In reply to Arthur Iakab [arthur_iakab] from comment #10)
Backed out 3 changesets (bug 1551758) for causing wpt failures on form-submission-algorithm.html. CLOSED TREE
Backout revision https://hg.mozilla.org/integration/autoland/rev/b5884cc109b5ff0772f37f5973045f7a9d68c75e
Failure logs https://treeherder.mozilla.org/logviewer.html#?job_id=277190159&repo=autoland
John can you please take a look?
It's because form-submission-algorithm.html WPT just updated. It required some merge with my change for form-submission-algorithm.html.ini
file.
TEST-UNEXPECTED-FAIL | /html/semantics/forms/form-submission-0/form-submission-algorithm.html | firing an event named submit; form.requestSubmit() - promise_test: Unhandled rejection with value: object "TypeError: form.requestSubmit is not a function"
Assignee | ||
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d7513b1aebd0
https://hg.mozilla.org/mozilla-central/rev/95b50e3a1f8c
https://hg.mozilla.org/mozilla-central/rev/1f77dd98df61
Assignee | ||
Updated•5 years ago
|
Description
•