Click event isn't fired when mouse button down on border of <input> and mouse button up on padding box of it

RESOLVED FIXED in mozilla2.0b7

Status

()

defect
RESOLVED FIXED
9 years ago
4 months ago

People

(Reporter: masayuki, Assigned: masayuki)

Tracking

(Blocks 1 bug)

Trunk
mozilla2.0b7
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

()

Attachments

(1 attachment, 1 obsolete attachment)

Posted file Patch v1.0 (obsolete) —
This is spinning off from bug 552707.

Open the testcase:

> data:text/html,<input onclick="alert('click event fired');" style="border: blue solid 10px;">

Press left mouse button on the blue border and move the cursor into the editor and release the mouse button, then, onclick event must be fired.

At mouse up event handling, the content is anonymous div but the mouse down content is <input>. Therefore, the content mismatch causes to cancel the click event. At the checking, if the current content is a root of anonymous subtree, we should also check whether the parent content is mouse down content or not.
Flags: in-testsuite?
Attachment #469325 - Flags: review?(Olli.Pettay)
Posted patch Patch v1.0Splinter Review
Wow.. cannot change the MIME type...
Attachment #469325 - Attachment is obsolete: true
Attachment #469326 - Flags: review?(Olli.Pettay)
Attachment #469325 - Flags: review?(Olli.Pettay)
It is possible to change the mime type. 
details->edit->mimetype
Comment on attachment 469326 [details] [diff] [review]
Patch v1.0

Yeah, this should do it.
Attachment #469326 - Flags: review?(Olli.Pettay) → review+
(In reply to comment #2)
> It is possible to change the mime type. 
> details->edit->mimetype

Oh, "edit"... I couldn't find it :-) Thank you.
Attachment #469326 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/5a051c65160e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b6
Depends on: 593620
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.