Closed Bug 590819 Opened 12 years ago Closed 12 years ago

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

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Attached 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)
Attached 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+
Comment on attachment 469326 [details] [diff] [review]
Patch v1.0

The risk is low.
Attachment #469326 - Flags: approval2.0?
(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: 12 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.