Closed Bug 838695 Opened 12 years ago Closed 12 years ago

Move nsFileControlFrame click handling to nsHTMLInputElement

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached patch Patch (obsolete) — Splinter Review
No description provided.
Attachment #710789 - Flags: review?(bzbarsky)
Comment on attachment 710789 [details] [diff] [review] Patch r- per our discussion about how this causes click() to bring up two filepickers.
Attachment #710789 - Flags: review?(bzbarsky) → review+
Attached patch Patch (obsolete) — Splinter Review
This is moving the click handling to the content.
Attachment #710789 - Attachment is obsolete: true
Attachment #712118 - Flags: review?(bugs)
Summary: Don't have both anonymous elements listen to 'click' but the whole frame instead → Move nsFileControlFrame click handling to nsHTMLInputElement
Attached patch Patch v2Splinter Review
Better patch, should pass tests.
Attachment #712118 - Attachment is obsolete: true
Attachment #712118 - Flags: review?(bugs)
Attachment #712139 - Flags: review?(bugs)
Comment on attachment 712139 [details] [diff] [review] Patch v2 var e = new MouseEvent("click", {...}) looks a bit nicer than var e = edocument.createEvent("MouseEvent"); e.initMouseEvent("click", ...); s/DnDMouseListener/DnDListener/
Attachment #712139 - Flags: review?(bugs) → review+
I will merge that patch with the main patch when landing but asking for a separate review to make the reviewer's life easier ;)
Attachment #715188 - Flags: review?(bugs)
Comment on attachment 715188 [details] [diff] [review] Fix clicking on the button "Returns if the element should prevent dispatching another DOMActivate." -> "Returns true if the element should prevent dispatching another DOMActivate."
Attachment #715188 - Flags: review?(bugs) → review+
Blocks: 701353
Target Milestone: --- → mozilla22
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Depends on: 875252
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: