Closed Bug 792390 Opened 8 years ago Closed 8 years ago

Avoid calling textbox.focus() before textbox.select()

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 18

People

(Reporter: dao, Assigned: dao)

References

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch patchSplinter Review
inputField.select() automatically focuses the input field, so we don't need to explicitly focus it beforehand. select() also uses FLAG_NOSCROLL, which focus() doesn't.
Attachment #662516 - Flags: review?(enndeakin)
Attachment #662516 - Flags: review?(enndeakin) → review+
https://hg.mozilla.org/mozilla-central/rev/b267a6f936fd
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
You need to log in before you can comment on or make changes to this bug.