Closed Bug 237076 Opened 20 years ago Closed 20 years ago

Object hierarchy is broken @ nsOuterDocAccessible

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: yuanyi21, Assigned: yuanyi21)

Details

(Keywords: fixed1.7)

Attachments

(1 file)

Using at-poke to poke the accessible object hierarchy of mozilla, it will stop
at the 3rd level of "panel" object.
That is because when called nsOuterDocAccessible::GetChildCount, it  asks
nsAccessible::CacheChildren to get its children number. But for
nsOuterDocAccessible, its child can not be obtained by nsAccessibleTreeWalker,
its child is hard-coded to a nsDocAccessible object. So we have to always return
1 for the ChildCount of nsOuterDocAccessible.
Attached patch patchSplinter Review
the description of this patch is in my previous comment.
Attachment #143560 - Flags: superreview?(Henry.Jia)
Attachment #143560 - Flags: review?(Louie.Zhao)
Attachment #143560 - Flags: review?(Louie.Zhao) → review+
Comment on attachment 143560 [details] [diff] [review]
patch

hold on, the problem is  more complicate than I can imagine.
nsOuterDocAccessible::GetChildCount gets called even before the constructor.
Attachment #143560 - Flags: superreview?(Henry.Jia)
Comment on attachment 143560 [details] [diff] [review]
patch

My previous comment was wrong. The constructor did get called before
GetChildCount, but unfortunately, mAccChildCount was cleared by
nsAccessible::InvalidateChildren again. So my patch is still applicable.
Attachment #143560 - Flags: superreview?(Henry.Jia)
Comment on attachment 143560 [details] [diff] [review]
patch

sr=Henry
Attachment #143560 - Flags: superreview?(Henry.Jia) → superreview+
Comment on attachment 143560 [details] [diff] [review]
patch

this fix is small but very important to linux accessibility feature.
Attachment #143560 - Flags: approval1.7?
Is this going into 1.8?
checked in trunk. Still waiting for 1.7branch...
Comment on attachment 143560 [details] [diff] [review]
patch

a=asa (on behalf of drivers) for checkin to 1.7
Attachment #143560 - Flags: approval1.7? → approval1.7+
fixed in 1.7 branch.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Could you add the fixed1.7 keyword?
Keywords: fixed1.7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: