Closed Bug 347241 Opened 18 years ago Closed 18 years ago

Don't use the DB to store engine order information unless the order is changed

Categories

(Firefox :: Search, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: Gavin, Assigned: Gavin)

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 1 obsolete file)

To ensure that users who don't change the default engine order continue to receive the shipped default order regardless of the build they're using, we should only write engine ordering information to the DB if the user changes them, and fall back to the prefs otherwise.
Attached patch WIP (obsolete) — Splinter Review
I think this is all that's needed, but I need to look into this further.
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attached patch patchSplinter Review
This makes us use the prefs unless an engine is moved, removed, or added. Making it only use the DB if the order changes is slightly more work. Benjamin, do you think this is sufficient?
Attachment #232007 - Attachment is obsolete: true
Attachment #232044 - Flags: review?(mconnor)
In addition to the reasons in comment 0, this patch makes it possible for the CCK to change the engine order on existing profiles, if the user hasn't modified, added or removed an engine.
Flags: blocking-firefox2?
Comment on attachment 232044 [details] [diff] [review]
patch

Yeah, good call.  Thanks!
Attachment #232044 - Flags: review?(mconnor) → review+
mozilla/browser/components/search/nsSearchService.js 	1.67
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [baking]
Target Milestone: --- → Firefox 2 beta2
Flags: blocking-firefox2? → blocking-firefox2+
Whiteboard: [baking] → [needs approval]
Attachment #232044 - Flags: approval1.8.1?
Comment on attachment 232044 [details] [diff] [review]
patch

a=schrep for drivers.
Attachment #232044 - Flags: approval1.8.1? → approval1.8.1+
mozilla/browser/components/search/nsSearchService.js 	1.1.2.56
Keywords: fixed1.8.1
Whiteboard: [needs approval]
Attached patch typo fixSplinter Review
I landed this on the branch and trunk with r=mconnor.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: