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

RESOLVED FIXED in Firefox 18

Status

()

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: dao, Assigned: dao)

Tracking

({perf})

Trunk
Firefox 18
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
Created attachment 662516 [details] [diff] [review]
patch

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)

Updated

7 years ago
Attachment #662516 - Flags: review?(enndeakin) → review+
https://hg.mozilla.org/mozilla-central/rev/b267a6f936fd
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
You need to log in before you can comment on or make changes to this bug.