Closed Bug 46616 Opened 25 years ago Closed 25 years ago

repeatedly selecting search category adds "hidden search engines"

Categories

(Core Graveyard :: RDF, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: waterson, Assigned: waterson)

References

Details

(Keywords: polish, Whiteboard: [nsbeta3+] FIX IN HAND)

Attachments

(2 files)

To reproduce: 1. Open the search panel 2. Choose "Search -> My Sidebar Search Panel -> Advanced" from the main menu. 3. In the search panel, select the "Within" drop down several times. After the 3rd or 4th time, you'll see a scrollbar appear in the search panel. Scrolling will reveal a whole bunch of duplicate entries in the list.
I'll call it "polish", but I'm pretty sure that this is indicative of a evil problem in the XUL template builder...
Status: NEW → ASSIGNED
Keywords: nsbeta3, polish
Target Milestone: --- → M18
cc'ing johng as he was asking about this problem
Whiteboard: nsbeta3+
Not sure who approved this as nsbeta3+, but the correct marking is [nsbeta3+] (note brackets). Corrected that.
Whiteboard: nsbeta3+ → [nsbeta3+]
*** Bug 47273 has been marked as a duplicate of this bug. ***
each time you click you get another complete copy of the search engines ad nauseaum. Search bug (on the surface) taking QA
QA Contact: tever → claudius
This is happening because somehow I've managed to botch RemoveGeneratedContent() when it comes to trees that have a <treechildren> element specified "outside" of the template.
QA Contact: claudius → tever
Here's how I wish I could fix it. This lets the rule network figure out which rules "unmatch" (or "retract") when you yank an element out of the content model. Unfortunately, because of our wonderous content model APIs, it ends up going O(n^2) or worse because it essentially ends up removing content randomly. This changes the time it takes to switch *away* from a 10,000 message mailnews folder from something like 2sec up to 6sec. The alternative is to special-case <treewidget>, which is ugly, but probably faster.
Oh, wait. I forgot that there's still something wrong with this fix. Opening and closing folders ends up doubling the sub-content each time.
*** Bug 47327 has been marked as a duplicate of this bug. ***
*** Bug 47327 has been marked as a duplicate of this bug. ***
Whiteboard: [nsbeta3+] → [nsbeta3+] FIX IN HAND
Looks good; r=rjc
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
verified: Win NT 2000090808 Linux rh6 2000090708 Mac OS8.6 2000090704
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: