Closed
Bug 139798
Opened 23 years ago
Closed 23 years ago
form submit with javascript action unable to submit
Categories
(Core :: DOM: Core & HTML, defect, P1)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.0
People
(Reporter: Tony.Tovar, Assigned: john)
References
()
Details
(Keywords: topembed+, Whiteboard: [FIX][adt2])
Attachments
(1 file, 1 obsolete file)
1.05 KB,
patch
|
john
:
review+
john
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
Using build 2002-04-22(08) on WinNT
Clicking the GO button (or simply typing a product search and pressing ENTER)
has no effect. It works in IE. Tech evangelism?
![]() |
||
Comment 1•23 years ago
|
||
To jkeiser.. The "action" is a javascript url that calls .submit() and I suspect
that we ignore .submit() calls on a form that is "already submitting", which
breaks in this case.
Assignee: Matti → jkeiser
Status: UNCONFIRMED → NEW
Component: Browser-General → Form Submission
Ever confirmed: true
OS: Windows NT → All
Hardware: PC → All
Assignee | ||
Comment 2•23 years ago
|
||
It has an effect for me ... strange, when I type "hi" and click "GO" it goes to
a script called EMAILOPTIN, it doesn't search at all.
Assignee | ||
Comment 3•23 years ago
|
||
Linux 2002042210.
Assignee | ||
Comment 4•23 years ago
|
||
Oops, that was the wrong box. They have a really sneaky box at the bottom for
you to enter your email that doesn't tell you what the box is for. I am seeing
the problem on product search.
This is ugly code. Maybe IE handles it by only disallowing multiple submits to
http.
Assignee | ||
Comment 5•23 years ago
|
||
*** Bug 139840 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 6•23 years ago
|
||
Nominating. This is important, bz tells me there are two other bugs out there
(I haven't see them) that have this problem. Any form which has javascript: as
the action and modifies the ADT: if this
The fix is known, and should be quick. Simply do not block other submits when
the URL is javascript.
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Assignee | ||
Comment 7•23 years ago
|
||
This fixes the problem by allowing submission to occur again during submit of
javascript: URLs. I do not think this is a hack, though one thing that would
be nice is if you could ask for info about a URI--i.e. find out if it is
synchronous and find out if it is scriptable and if both are true, disable
submit. This would work gracefully with future as-yet-undetermined URL types.
Comment 9•23 years ago
|
||
Comment on attachment 80922 [details] [diff] [review]
Patch
r= alexsavulov
i bet the guy that put that page together tried to show everybody what nice
tricks he can do with HTML and javascript. but anyway, he showed us a problem.
so if i get it right in this case we submit only once right? now i start to
think about some sick dude that might try to submit the same form
twice(explicitly) using for example a js onsubmit handler or like here a js
action. that sould be tested with IE to see if is possible. If yes, sooner or
later someone will do it (or maybe not).
Attachment #80922 -
Flags: review+
Assignee | ||
Comment 10•23 years ago
|
||
1.0 should only be set by nsbeta1+'er.
Target Milestone: mozilla1.0 → ---
![]() |
||
Comment 11•23 years ago
|
||
Note: this breaks Dell's Premier Support web site....
No longer blocks: 132895
Comment 12•23 years ago
|
||
nsbeta1+
Updated•23 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.0
Comment 13•23 years ago
|
||
Comment on attachment 80922 [details] [diff] [review]
Patch
SR=attinasi
As we discussed in IM, please change the comment to make it clear that
submitting from JS is not really 'submitting', it is just executing some JS
code.
Attachment #80922 -
Flags: superreview+
Assignee | ||
Comment 14•23 years ago
|
||
Final version (so that I have the right patch to go with when checking in to
branch)
Assignee | ||
Updated•23 years ago
|
Attachment #80922 -
Attachment is obsolete: true
Assignee | ||
Comment 15•23 years ago
|
||
Comment on attachment 81793 [details] [diff] [review]
Patch v1.0.1
Carrying r/sr.
Attachment #81793 -
Flags: superreview+
Attachment #81793 -
Flags: review+
Assignee | ||
Comment 16•23 years ago
|
||
Fix checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 17•23 years ago
|
||
Attachment #81793 -
Flags: approval+
Reporter | ||
Comment 18•23 years ago
|
||
Is it too late to update the summary to something more technical? I'm the
reporter and I'm open to any suggestions.
Assignee | ||
Updated•23 years ago
|
Summary: coldwatercreek.com - product search doesn't work (incompatible javascript?) → form submit with javascript action unable to submit
Comment 19•23 years ago
|
||
This sounds like it is a rare use of "HTML and javascript." Do we know how often
this occurs out in the wild? Does this happen on a high level, in any top sites?
![]() |
||
Comment 20•23 years ago
|
||
In the week or so that we have had this bug, we have had at least four reports
on it. One of the affected sites is Dell's support site, another is a banking
site. The fix is very safe and simple.
Comment 21•23 years ago
|
||
adt1.0.0+ (on ADT's behalf) approval for checkin to the 1.0 brnach. Pls check
this in after you receive a= from Drivers, then add the fixed1.0.0 keyword.
Comment 22•23 years ago
|
||
[Internal reference testcase]
http://bugscape.mcom.com/show_bug.cgi?id=14642
Keywords: topembed+
Comment 23•23 years ago
|
||
did this one make it to the branch yet?
Comment 24•23 years ago
|
||
Refresh of a= for drivers; very low risk, high reward/visibility
Comment 25•23 years ago
|
||
Please check this in to the branch today!
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•