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

RESOLVED FIXED in Firefox 18

Status

()

defect
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: dao, Assigned: dao)

Tracking

({perf})

Trunk
Firefox 18
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Posted 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: 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.