Closed Bug 875042 Opened 11 years ago Closed 11 years ago

Remove unnecessary setTimeout from search-textbox constructor

Categories

(Firefox :: Search, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 24

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(1 file)

The search-textbox constructor uses setTimeout to delay the call to the initialize method. According to the history books (and gavin), this is because, at least at some point, we were regressing on talos, and this fixed things (since initializing used to also kick off the search service).

Well, it doesn't kick off the search service anymore, and it's causing test failures for our patch for bug 865926. Dolske and Gavin have decreed that it's bogus, so I'll strip it out.
r+'d by dolske over IRC.
Attachment #752898 - Flags: review+
(Bug 330887 last fiddled with this, but the original addition of the setTimeout dates back to an early 2006 change (CVS v1.4) by Blake Ross without a bug.)
(You could also have just removed "initialize" entirely, putting it directly in the constructor.)
((additional parenthetical :))
https://hg.mozilla.org/mozilla-central/rev/f0b62fbadce9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
(I've filed a follow-up (bug 875297) to move the stuff from initialize into the constructor.)
Blocks: 875297
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: