Closed
Bug 344457
Opened 18 years ago
Closed 18 years ago
Removing all search engines other than Google and Answers causes the second search engine in the list to be removed when Firefox exits
Categories
(Firefox :: Search, defect)
Tracking
()
RESOLVED
FIXED
Firefox 2 beta2
People
(Reporter: tommyjb, Assigned: Gavin)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
1.78 KB,
patch
|
mconnor
:
review+
mconnor
:
approval1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060712 BonEcho/2.0b1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060712 BonEcho/2.0b1 Reproducible: Always Steps to Reproduce: 1. Run a recent Bon Echo nightly (I'm using "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b1) Gecko/20060712 BonEcho/2.0b1") with a fresh profile. 2. Go to "Manage Search Engines". 3. Delete Yahoo, Amazon, Creative Commons, and eBay (leaving Google and Answers). 4. Close Bon Echo. 5. Restart Bon Echo. 6. View the list of search engines. Actual Results: Only the Google engine shows. Expected Results: The Google engine and the Answers engine both show. I'm able to reproduce this only with just Google and Answers left installed. This kills whichever is the second one in the list. So if the first is Google, Answers goes. If the first is Answers, Google goes.
Summary: Removing all search engines other than Google and Answers causes the second search engine in the list to remove when Firefox exits → Removing all search engines other than Google and Answers causes the second search engine in the list to be removed when Firefox exits
Assignee | ||
Comment 1•18 years ago
|
||
Indeed, this is a problem with the ordering code.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Firefox 2 beta2
Version: unspecified → 2.0 Branch
Assignee | ||
Comment 2•18 years ago
|
||
This is related to an issue I found while working on the patch for bug 327932, and I included a partial fix for it in the patch attached there. I'm going to move that fix to this bug because it's a separate issue. _saveSortedEngineList is only saving order info for the visible engines, so when you shutdown after removing engines, the new "position 2" in the list gets an "position 2" attribute, but the "position 2" (Yahoo, in this case) keeps it's "position 2" attribute. That means that when we build the list at startup (_buildSortedEngineList), the second engine loaded with a "position 2" attribute overwrites the original in the _sortedEngines array. The fix is two parts: 1) make sure we don't end up with multiple engines with the same position attribute by saving the position info for all engines (i.e. make sure we don't cause the problem ourselves) 2) protect against the same issue caused by external changes by adding a check to _buildSortedEngineList to ensure it doesn't clobber existing items in the array.
Assignee | ||
Updated•18 years ago
|
Flags: blocking-firefox2?
Updated•18 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Assignee | ||
Updated•18 years ago
|
Whiteboard: [patch-r?]
Updated•18 years ago
|
Attachment #229079 -
Flags: review?(mconnor) → review+
Assignee | ||
Updated•18 years ago
|
Whiteboard: [patch-r?] → [checkin needed]
Assignee | ||
Comment 3•18 years ago
|
||
mozilla/browser/components/search/nsSearchService.js 1.53
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Assignee | ||
Updated•18 years ago
|
Whiteboard: [need-a]
Assignee | ||
Updated•18 years ago
|
Attachment #229079 -
Flags: approval1.8.1?
Assignee | ||
Updated•18 years ago
|
Whiteboard: [need-a] → [a?]
Assignee | ||
Comment 4•18 years ago
|
||
This has been on the trunk since Wednesday with no reported regressions, and is unlikely to cause any regressions. This is also a requirement for the engine update service (bug 327932).
Comment 5•18 years ago
|
||
Comment on attachment 229079 [details] [diff] [review] patch a=mconnor on behalf of drivers for checkin to the 1.8 branch
Attachment #229079 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Updated•18 years ago
|
Whiteboard: [a?] → [checkin needed (1.8 branch)]
Assignee | ||
Comment 6•18 years ago
|
||
mozilla/browser/components/search/nsSearchService.js 1.1.2.46
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
You need to log in
before you can comment on or make changes to this bug.
Description
•