Closed Bug 454570 Opened 16 years ago Closed 16 years ago

nsSearchService.js stores document and element on its global object

Categories

(Firefox :: Search, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.1b1

People

(Reporter: peterv, Assigned: peterv)

References

Details

(Keywords: fixed1.9.0.4)

Attachments

(1 file)

Attached patch v1Splinter Review
nsSearchService.js stores a document and an element on its global object because of missing |var|s. We're keeping those objects alive for the duration of the app with no reason. It might also cause leaks so we should probably also land this on branch.
Note that this will definitely cause leaks once bug 335998 has landed.
Attachment #337862 - Flags: review?(gavin.sharp)
Attachment #337862 - Flags: review?(gavin.sharp) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Attachment #337862 - Flags: approval1.9.0.3?
Comment on attachment 337862 [details] [diff] [review]
v1

This is a trivial fix, it makes debugging leaks easier and it might avoid some leaks.
This technically doesn't match the new branch criteria and there's no way to test/verify it. On the other hand adding "var " is braindead simple. mconnor?
Comment on attachment 337862 [details] [diff] [review]
v1

Approved for 1.9.0.4, a=dveditz for release-drivers
Attachment #337862 - Flags: approval1.9.0.4? → approval1.9.0.4+
Checked in for 1.9.0.4.
Keywords: fixed1.9.0.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: