Closed Bug 1660792 Opened 5 years ago Closed 5 years ago

Button value not submitted when posting form with JS

Categories

(Core :: DOM: Forms, defect)

79 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1658082

People

(Reporter: bartosz.nowotny, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

I noticed a regression in Firefox on the webpage I'm maintaining. We have a simple JS multiple form submission prevention mechanism. Recently, I noticed that in Firefox (other browsers still work) the button value is not POSTed. If I remove the JS script that prevents multiple submission, the button value is POSTed correctly. See repro here: https://jsfiddle.net/70ha4ju5/

Actual results:

The form was POSTed to server without the button value.

Expected results:

The form should be POSTed to server with the button value.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

Confirmed that this happens. Maybe disabled controls aren't sent in the POST request? Anyway, not a JS engine issue; DOM folks probably know what's going on here.

Component: JavaScript Engine → DOM: Forms

16:32.78 INFO: Last good revision: 4eeda6c8d8c5de4d6f512a9b543e06823098e58e
16:32.78 INFO: First bad revision: 5431d962a10f33df15f35bc47e62b6740b61308e
16:32.78 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=4eeda6c8d8c5de4d6f512a9b543e06823098e58e&tochange=5431d962a10f33df15f35bc47e62b6740b61308e

Okay, looks like a regression of bug 1590762, but was not able to reproduce on recent Nightly, might be fixed by bug 1658082.
I will run mozregression again with --find-fix.

13:27.73 INFO: First good revision: 59aaa4311b3a2a13683492d15a52b740aae81879
13:27.73 INFO: Last bad revision: 971e2d1a6140181ce640947ee0288ccc9fd89e6f
13:27.73 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=971e2d1a6140181ce640947ee0288ccc9fd89e6f&tochange=59aaa4311b3a2a13683492d15a52b740aae81879

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.