Closed Bug 278825 Opened 20 years ago Closed 20 years ago

A combination of a RDF datasourced'd listbox removeItemAt and builder.refresh() crashes Mozilla

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mark-bugzilla, Assigned: jag+mozilla)

Details

(Keywords: stackwanted)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

A combination of a RDF datasourced'd listbox removeElementAt and
builder.refresh() crashes Mozilla.

Specifically, if you have a listbox with headings coming from a RDF datasource,
remove an element with removeElementAt() (which doesn't work properly anyway),
then refresh, remove etc, it will crash Mozilla.

This is related to two other bugs - builder.refresh() not working and
removeElementAt() removing things other than what it's supposed to (

Reproducible: Always

Steps to Reproduce:
1. Create a RDF-datasourced listbox
2. Using scripting, remove elements, refresh the builder, refresh the builder
again and remove another element


Actual Results:  
Mozilla crashes

Expected Results:  
The item should have been removed and then the builder should put it back when
refreshing from the RDF datasource.

Zip file containing test case will be attached shortly.
Attached file Test case
UL test case.
Summary: A combination of a RDF datasourced'd listbox removeElementAt and builder.refresh() crashes Mozilla → A combination of a RDF datasourced'd listbox removeItemAt and builder.refresh() crashes Mozilla
see also: 

277498 listbox removeItemAt also removes column headings.

and
241827 builder.refresh method sometimes leaves blank values when datasource is
changed.	

In description, references to removeElementAt should be removeItemAt (My mistake)
worksforme with linux trunk 2005011805 and firefox trunk, although I crash with
1.7.5.

please test a trunk build
Yeah, I see crashes in a build from April, but not from June or later...
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: