Skip to content

Commit

Permalink
Bug 1813301 [wpt PR 38242] - Add optional submitter argument to FormD…
Browse files Browse the repository at this point in the history
…ata constructor, a=testonly

Automatic update from web-platform-tests
Add optional submitter argument to FormData constructor

This patch adds support for the new submitter argument to the FormData constructor.

Spec: https://xhr.spec.whatwg.org/#interface-formdata
Spec PR (merged): whatwg/xhr#366
WPT PR: web-platform-tests/wpt#37895

Bug: 1410542
Change-Id: If17f782f75ae40ae21241c169afc52761fc89544
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4189297
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1100734}

--

wpt-commits: 181fc870aeae110d95537bac969f76caa55d5112
wpt-pr: 38242
  • Loading branch information
jenseng authored and moz-wptsync-bot committed Feb 4, 2023
1 parent d661598 commit d475448
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion testing/web-platform/tests/xhr/idlharness.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ idl_test(
});
if (self.Window) {
self.form = document.createElement('form');
idl_array.add_objects({ FormData: ['new FormData(form)'] });
self.submitter = document.createElement('button');
self.form.appendChild(self.submitter);
idl_array.add_objects({
FormData: [
'new FormData(form)',
'new FormData(form, submitter)'
],
});
}
}
);

0 comments on commit d475448

Please sign in to comment.