Closed
Bug 236438
Opened 21 years ago
Closed 21 years ago
Wrong x/y values sent on image button (input[type=image])
Categories
(Core :: Layout: Form Controls, defect, P1)
Core
Layout: Form Controls
Tracking
()
VERIFIED
FIXED
People
(Reporter: harunaga, Assigned: roc)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
1.23 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
Recent build sends wrong x/y coordinate values on image button
(input[type=image]).
Steps:
1. Load http://maps.yahoo.com/maps_result?ed=M7tNO.p_0TqT&csz=new+york&country=us
2. Click around "Broadway" inside the map.
Result:
"Atlantic Ocean".
Confirmed with 2004022909/WinNT and 2004030205/Mac.
1.6 doesn't have this problem.
regression.
See also testcase in the URL above.
(Save the testcase to disk, and open)
It seems that Mozilla sends coordinates inside the window,
instead of inside the image...
Reporter | ||
Comment 1•21 years ago
|
||
2004022805 has no problem, 2004022905 is broken.
Comment 2•21 years ago
|
||
Backing out bug 53966 fixes this.
Assignee: form-submission → roc
Component: HTML: Form Submission → Layout: Form Controls
Depends on: 53966
![]() |
||
Comment 4•21 years ago
|
||
I bet adding a call to nsImageFrame::TranslateEventCoords at
http://lxr.mozilla.org/seamonkey/source/layout/html/forms/src/nsImageControlFrame.cpp#266
fixes this.
Assignee | ||
Comment 5•21 years ago
|
||
Indeed, you're right.
![]() |
||
Comment 6•21 years ago
|
||
Mm... and the old code was buggy with borders too, eh? ;)
![]() |
||
Comment 7•21 years ago
|
||
Comment on attachment 142972 [details] [diff] [review]
fix
r+sr=bzbarsky
Attachment #142972 -
Flags: superreview+
Attachment #142972 -
Flags: review+
Assignee | ||
Updated•21 years ago
|
Attachment #142972 -
Flags: superreview?(bzbarsky)
Attachment #142972 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•21 years ago
|
Attachment #142972 -
Flags: superreview?(bzbarsky)
Attachment #142972 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•21 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 8•21 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•