Bug 1820403 - Skip parts of form submission when the method is dialog. r=dom-core,sefeng

https://github.com/whatwg/html/pull/8943 moved dialog submission in the form submission algorithm from step 24 to step 11.

Differential Revision: https://phabricator.services.mozilla.com/D183168
This commit is contained in:
Vincent Hilla
2023-07-18 13:00:27 +00:00
parent acf818990e
commit ba2163ab57
4 changed files with 30 additions and 39 deletions

View File

@@ -854,7 +854,7 @@ nsresult HTMLFormElement::SubmitSubmission(
return rv;
}
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-dialog
// https://html.spec.whatwg.org/#concept-form-submit step 11
nsresult HTMLFormElement::SubmitDialog(DialogFormSubmission* aFormSubmission) {
// Close the dialog subject. If there is a result, let that be the return
// value.