Closed Bug 958101 Opened 11 years ago Closed 11 years ago

onFindResult should take its parameters as an object

Categories

(Toolkit :: Find Toolbar, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
After bug 916481, onFindResult has grown enough parameters that it would be clearer to pass them as "named" parameters in a JS object. Note: This patch adds "searchString" as one of the parameters passed to onFindResult. This simplifies the code by harmonizing the callback data and the IPC message data. However, it's not strictly needed and I could move it out of the callback data if you'd prefer.
Attachment #8357815 - Flags: review?(evilpies)
Attached patch patch v2Splinter Review
Adds a couple of changes I missed in the previous patch.
Attachment #8357815 - Attachment is obsolete: true
Attachment #8357815 - Flags: review?(evilpies)
Attachment #8357821 - Flags: review?(evilpies)
Blocks: 958111
Comment on attachment 8357821 [details] [diff] [review] patch v2 Thanks.
Attachment #8357821 - Flags: review?(evilpies) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: