Closed Bug 420549 Opened 16 years ago Closed 16 years ago

Removing an engine shortly after adding it triggers NS_ASSERT

Categories

(Firefox :: Search, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Firefox 3 beta5

People

(Reporter: Gavin, Assigned: Gavin)

Details

Attachments

(1 file)

... because the lazy serialization timer is still pending, and when it fires, the engine is gone, and it doesn't know how to deal. We should cancel the pending timer if it's still running when we remove the engine.
The assert that's hit, fwiw: "Can't serialize: file doesn't exist!" at:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/browser/components/search/nsSearchService.js&rev=1.109&mark=1948#1941

because the file was already removed in removeEngine().
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #306842 - Flags: review?(mano)
Priority: -- → P3
Target Milestone: --- → Firefox 3
Priority: P3 → --
Target Milestone: Firefox 3 → ---
Comment on attachment 306842 [details] [diff] [review]
patch

r=mano
Attachment #306842 - Flags: review?(mano) → review+
Comment on attachment 306842 [details] [diff] [review]
patch

Simple fix to the search service API, very low risk. Needed for bug 420328's unit test.
Attachment #306842 - Flags: approval1.9?
Priority: -- → P3
Target Milestone: --- → Firefox 3
Priority: P3 → P2
Comment on attachment 306842 [details] [diff] [review]
patch

a1.9=beltzner
Attachment #306842 - Flags: approval1.9? → approval1.9+
mozilla/browser/components/search/nsSearchService.js 	1.110
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: Firefox 3 → Firefox 3 beta5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: