Closed Bug 184207 Opened 22 years ago Closed 22 years ago

name/value pairs not being submitted on submit()

Categories

(Core :: DOM: Core & HTML, defect, P1)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED
mozilla1.3beta

People

(Reporter: john, Assigned: john)

References

Details

(Keywords: topembed, Whiteboard: [FIX])

Attachments

(2 files, 1 obsolete file)

When you have <input type=submit name=x value=y onclick='this.form.submit()'> the x=y should submit (the web developer who wrote the html code in question should be shot as well). This is a regression of bug 138957.
Attached patch Patch (obsolete) — Splinter Review
The problem is that mPendingSubmission is getting set to false in nsHTMLFormElement::HandleDOMEvent() during the capture stage of the onclick handler. This patch fixes the problem by not setting mPendingSubmission = FALSE unless it is the submit event. It also shuffles the part that resets mPendingSubmission = null to the submit() method and adds an assertion, so that we can catch cases where submissions fall through the cracks a little easier.
Attachment #108655 - Flags: review?(alexsavulov)
Status: NEW → ASSIGNED
Whiteboard: [FIX]
Attached file Testcase
Priority: -- → P3
Target Milestone: --- → mozilla1.3beta
Attached patch Patch v1.1Splinter Review
Merge to trunk, and don't flush on reset.
Attachment #108655 - Attachment is obsolete: true
Attachment #109247 - Flags: review?(alexsavulov)
Attachment #108655 - Flags: review?(alexsavulov)
Comment on attachment 109247 [details] [diff] [review] Patch v1.1 ok this cancels the patch i prepared for the regression bug 184931. good to go dude!
Attachment #109247 - Flags: review?(alexsavulov) → review+
Blocks: 184931
this one is really important be cause of the regression bug 184931
Severity: normal → critical
Keywords: topembed
Priority: P3 → P1
Attachment #109247 - Flags: superreview?(jst)
Bug 184931 is an ALL/ALL bug, should not be wontfixed, since this bug is not ALL/ALL and is either a dupe of or will create a worksforme in the other.
Attachment #109247 - Flags: superreview?(jst) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verifying.
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: