Closed Bug 352106 Opened 18 years ago Closed 18 years ago

Moving search engines up and down does not work right

Categories

(Firefox :: Search, defect, P1)

2.0 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: atg2dg, Assigned: Gavin)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060821 Firefox/2.0b2

Today I added some search engines, and removed some of the default. When i tried to rearrange the order my search engines after clicking OK the search engines were not ordered in the way i wanted them. Finally after moving an engine which resulted in moving an entirely different one i managed to order them in the way i want

Reproducible: Always

Steps to Reproduce:
1.Add some search engines
2.Remove some (of the default?) search engines
3.Move a search engine
4.Click OK and go see how the engines are ordered

Actual Results:  
The engines are not ordered in "manage search engines"

Expected Results:  
The engines should be ordered in the way in "manage search engines"
Steps to reproduce:
1) Add an engine (any engine)
2) Delete all engines other than Google and the added engine
3) Try to move Google below the added engine

This happens because the engine manager does not take into account "hidden" engines when finding the old/new index for the move.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Version: unspecified → 2.0 Branch
Assignee: nobody → gavin.sharp
Flags: blocking-firefox2?
Priority: -- → P1
Target Milestone: --- → Firefox 2
Status: NEW → ASSIGNED
Flags: blocking-firefox2? → blocking-firefox2+
Attached patch patchSplinter Review
Attachment #238128 - Flags: review?
Attachment #238128 - Flags: review? → review+
Whiteboard: [has patch][checkin needed]
mozilla/browser/components/search/nsSearchService.js 	1.83
mozilla/browser/components/search/nsIBrowserSearchService.idl 	1.16
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][checkin needed] → [needs approval]
Comment on attachment 238128 [details] [diff] [review]
patch

This is a low risk patch that only affects search engine ordering. The indices passed by the engine manager were based on the visible engine list, while the search service treated the incoming index as though it was based on the list of all engines (including hidden engines). This patch fixes that discrepancy so that ordering works correctly when you have a hidden default engine.
Attachment #238128 - Flags: approval1.8.1?
Whiteboard: [needs approval] → [has patch][needs approval]
Comment on attachment 238128 [details] [diff] [review]
patch

a=schrep for 181drivers
Attachment #238128 - Flags: approval1.8.1? → approval1.8.1+
mozilla/browser/components/search/nsIBrowserSearchService.idl 	1.1.2.17
mozilla/browser/components/search/nsSearchService.js 	1.1.2.67
Keywords: fixed1.8.1
Whiteboard: [has patch][needs approval]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: