Closed
Bug 65747
Opened 24 years ago
Closed 24 years ago
[FIX][MF][IMG]<input type="image"> works only if the image can be loaded
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
mozilla0.8.1
People
(Reporter: st.n, Assigned: rods)
References
Details
(Keywords: dataloss, relnote, testcase)
Attachments
(5 files)
409 bytes,
text/html
|
Details | |
17.99 KB,
patch
|
Details | Diff | Splinter Review | |
9.04 KB,
patch
|
Details | Diff | Splinter Review | |
431 bytes,
text/html
|
Details | |
9.78 KB,
patch
|
Details | Diff | Splinter Review |
I've seen this for quite a while now, both on Linux and on NT4. Within a <form>,
<input type="image"> works only if the image can be loaded actually. If it can't
(because of a 404 or something), then you can't submit the form.
To Reproduce:
Open the attached test case with Mozilla. It contains a <form> with two
<imput type="image">s. The first one (Mozilla banner) is there and can be
clicked on. The second one can't be loaded, and so the alt-text is shown.
The cursor changes to a hand when moving over it, indicating that it is
clickable, but nothing happens if you click. Expected: submit the form.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Adding keywords:
4xp since this works with NS 4.x
correctness
dataloss because I have to switch to another browser and type in the whole
form again
testcase
yep, <input type="image"> also do not work when image loading is disabled or
that particular image has been blocked. i think it is related to bug 41924, if
not dupe.
Reporter | ||
Comment 4•24 years ago
|
||
I found bug 41924, too, when looking before filing this bug. But that bug has
many more issues open, this one is much more specific. Marking this bug as (yet
another) dependency of bug 41924, which is the IMHO better than dup'ing it and
then it gets lost.
And by the way, the bug I'm describing here isn't even mentioned in bug 41924.
Depends on: alttext
Comment 5•24 years ago
|
||
Sounds like there is something common with the notorious PowerPC-only bug 63846.
Assignee | ||
Comment 7•24 years ago
|
||
Will have to take a look
Status: NEW → ASSIGNED
Summary: <input type="image"> works only if the image can be loaded → [IMG]<input type="image"> works only if the image can be loaded
Comment 8•24 years ago
|
||
nominating for mozilla 0.8, since today is the last day, and this one definitely
deserves a relnote.
Keywords: mozilla0.8
Updated•24 years ago
|
Whiteboard: critical for 0.8
Comment 9•24 years ago
|
||
Drivers determine .8 criticality.
Keywords: relnote
Whiteboard: critical for 0.8
Assignee | ||
Updated•24 years ago
|
Summary: [IMG]<input type="image"> works only if the image can be loaded → [MF][IMG]<input type="image"> works only if the image can be loaded
Assignee | ||
Updated•24 years ago
|
Keywords: patch
Summary: [MF][IMG]<input type="image"> works only if the image can be loaded → [FIX][MF][IMG]<input type="image"> works only if the image can be loaded
Assignee | ||
Comment 11•24 years ago
|
||
Assignee | ||
Comment 12•24 years ago
|
||
Comment 13•24 years ago
|
||
Is there still a diff in nsHTMLInputElement::HandleDOMEvent with the new patch
to fix this bug? All of the changes in nsHTMLInputElement.cpp in the first
patch looked fine, except the LEFT_BUTTON_UP should probably be
LEFT_BUTTON_CLICK so that if the button is depressed on another control and
dragged into the image input before being released, a submit will not be triggered.
r=pollmann for all of the changes in the new patch. These changes are a nice
refactoring and make me think that we should probably move the OnSubmit() and
OnReset() calls in DoManualSubmitOrReset() to
nsHTMLFormElement::HandleDOMEvent() at some point so they parallel how all other
form events are processed - but that can wait... :)
Assignee | ||
Comment 14•24 years ago
|
||
No, there will be no changes to nsHTMLInputElement until we can factor that
also.
Comment 15•24 years ago
|
||
sr=attinasi
Assignee | ||
Comment 16•24 years ago
|
||
Assignee | ||
Comment 17•24 years ago
|
||
For whatever reason the first testcase still work with my fix because the <p>
tags are causing problems when inside the form, this is certainly a different
bug, and I don't know if it is a know bug.
The orginal patch I attached had a lot of code factoring and it shared it
between the frames lib and the content lib. Now that the content lib has been
broken out on it's own I had to redo both parts of my fix. attinasi sr'ed the
first part, the factoring of the code in the frames sections.
This next patch is more factoring and the actual fix. Both patch do contain the
same method implmemntation which in the future we need to figure out how to put
the code in a single spot so they both can call it.
Assignee | ||
Comment 18•24 years ago
|
||
Assignee | ||
Comment 19•24 years ago
|
||
Boy do I need to review what I type more carefull, that comment is terrible, and
I meant to say that the the original testcase still "doesn't" work, but like I
said that is a different bug.
The only method that is duplicated in nsHTMLInputElement and nsFormControlHelper
is "DoManualSubmitOrReset" myself or pollmann will open a bug to track that we
merge those two impls.
Comment 20•24 years ago
|
||
In the second patch, shouldn't NS_MOUSE_LEFT_BUTTON_UP be
NS_MOUSE_LEFT_BUTTON_CLICK to make the behaviour consistent with when the image
can be loaded?
Otherwise r=pollmann - this is refactoring that needed to be done, great! :)
(I have a few ideas on how to combine the content and frames
DoManualSubmitOrReset methods - later work)
Updated•24 years ago
|
Keywords: mozilla0.8
Assignee | ||
Comment 22•24 years ago
|
||
fixed
Assignee | ||
Comment 23•24 years ago
|
||
try this again - fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 24•24 years ago
|
||
Testcase still doesnt work for me on build 2001-03-08-04-Mtest, reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 25•24 years ago
|
||
My testcase dated "2001-02-22 17:59" works fine and I am marking this bug fixed
once again. The original testcase still does not work because of a different
bug. My understanding of the intent of this bug was that the alt text frames
were not properly processing the event for the submit, which is what I fixed.
I have opened Bug 71476 for the problem with the <p> tag which is a core layout
issue.
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 26•24 years ago
|
||
remarking as fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Updated•24 years ago
|
Status: RESOLVED → VERIFIED
Comment 27•24 years ago
|
||
Ok, the second testcase works, verifying fixed.
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
•