Closed Bug 1593363 Opened 11 months ago Closed 10 months ago

[wpt-sync] Sync PR 20054 - Fix form submission for <button>s with children

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

Sync web-platform-tests PR 20054 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/20054
Details from upstream follow.

Joey Arhar <jarhar@chromium.org> wrote:

Fix form submission for <button>s with children

Form submission stopped working after crrev.com/c/1850358 when using
event.preventDefault() and form.submit() in a click event handler for a
\<button type=submit> when the button has child elements and the click
was made on one of the child elements.

Bug: 1020086
Change-Id: I8976298ac56a64ff7033cb2f7b46ee5116229464
Reviewed-on: https://chromium-review.googlesource.com/1896050
WPT-Export-Revision: 2d1134426152ebd4518696af1f8b223dff203b9e

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

GitHub CI Results

wpt.fyi PR Results Base Results

Ran 1 tests and 1 subtests

Firefox

OK : 1
PASS: 1

Chrome

TIMEOUT: 2

Safari

OK : 1
PASS: 1

Automatic update from web-platform-tests
Fix form submission for <button>s with children

Form submission stopped working after crrev.com/c/1850358 when using
event.preventDefault() and form.submit() in a click event handler for a
<button type=submit> when the button has child elements and the click
was made on one of the child elements.

Bug: 1020086
Change-Id: I8976298ac56a64ff7033cb2f7b46ee5116229464
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1896050
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711918}

--

wpt-commits: ac527a6087fc4c16a81ab001470d9e4e114c94b9
wpt-pr: 20054

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/165ea76962fd
[wpt PR 20054] - Fix form submission for <button>s with children, a=testonly
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.