Closed Bug 746990 Opened 12 years ago Closed 12 years ago

crash in nsXULTreeAccessible::Value

Categories

(Core :: Disability Access APIs, defect)

Other Branch
x86
Windows NT
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla15

People

(Reporter: MarcoZ, Assigned: capella)

References

()

Details

(Keywords: crash, Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++][gs][gssolved])

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-c7d007a9-42bd-48eb-96a7-0695d2120419 .
============================================================= 
I did the following:
1. Opened Thunderbird.
2. Opened the IM module and logged on to a few IRC channels.
3. Right-clicked one of the IRC channels and selected "Close this conversation".

Note that I had right-clicked the "Nickserv" message conversation before and closed it without incident, so this may not be reproducible at will.
It looks like the accessible is alive (probably in doc cache) but has been shutdown, leaving mTreeView nulled out. Meanwhile NVDA is asking for a value and kaboom.
(In reply to David Bolter [:davidb] from comment #1)
> It looks like the accessible is alive (probably in doc cache) but has been
> shutdown,

nope

> leaving mTreeView nulled out.

yes
How is mTreeView nulled out?
(In reply to David Bolter [:davidb] from comment #3)
> How is mTreeView nulled out?

TreViewChanged(), I think the right fix here is just adding a null check.
If the tree view changes, shouldn't we destroy the accessible and create a new one?
When do tree views change?
(In reply to David Bolter [:davidb] from comment #5)
> If the tree view changes, shouldn't we destroy the accessible and create a
> new one?

tree accessible? nope, 'cause treeview is responsible for data, i.e rows

(In reply to David Bolter [:davidb] from comment #6)
> When do tree views change?

when the author changes the tree view.
per comment #4, add a mTreeView null check into Value() method
Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++]
Target Milestone: --- → mozilla14
Version: Trunk → Other Branch
Target Milestone: mozilla14 → ---
(In reply to alexander :surkov from comment #7)
> (In reply to David Bolter [:davidb] from comment #6)
> > When do tree views change?
> 
> when the author changes the tree view.

Heh, I was wondering more about when and how often. I suspect this happens more in tbird.

OK I think I know where this bugs going :)
(In reply to David Bolter [:davidb] from comment #9)
> Heh, I was wondering more about when and how often. I suspect this happens
> more in tbird.

sort of strange question because that depends on the author (application) completely. Basically when the tree gets into no-data state then I think the author nulls out the treeview. 

I would suspect that too because tbird UI uses XUL trees a lot.

> OK I think I know where this bugs going :)

where? :)
Attached patch Patch (v1)Splinter Review
Quick fix for a "red" bug ... built and tested locally ...
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attachment #618877 - Flags: review?(trev.saunders)
Attachment #618877 - Flags: review?(trev.saunders) → review?(surkov.alexander)
Comment on attachment 618877 [details] [diff] [review]
Patch (v1)

thanks for doing this
Attachment #618877 - Flags: review?(surkov.alexander) → review+
http://hg.mozilla.org/mozilla-central/rev/bba6161714f2
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
reporter in https://getsatisfaction.com/mozilla_messaging/tags/bug_746990 indicates crash is fixed for thunderbird 15
Status: RESOLVED → VERIFIED
Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++] → [good first bug][mentor=trev.saunders@gmail.com][lang=c++][gs][gssolved]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: