Closed Bug 427291 Opened 18 years ago Closed 18 years ago

Multiple focus events fired when clicking XUL textbox

Categories

(Toolkit :: UI Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1a1

People

(Reporter: Gavin, Assigned: Gavin)

References

Details

(Keywords: regression)

Attachments

(1 file)

Caused by the patch for bug 403471. Normal clicks focus the anonymous html:input (textbox.inputField), but then the click handler is called, which focuses the <textbox>, which then redirects focus to the html:input again. We can avoid this by just focusing the input field directly from the click handler.
I noticed this because I was seeing redundant calls to nsAutocompleteController::SetInput, which is called from the autocomplete textbox's focus handler.
Keywords: regression
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #313846 - Flags: review?(mano)
I don't think this needs to land for Firefox 3.
Target Milestone: --- → mozilla2.0
Version: unspecified → Trunk
Comment on attachment 313846 [details] [diff] [review] patch r=mano
Attachment #313846 - Flags: review?(mano) → review+
Pushed in changeset 35d59b3bbc81.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: mozilla2.0 → mozilla1.9.1
Target Milestone: mozilla1.9.1 → mozilla1.9.1a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: