Closed Bug 616452 Opened 14 years ago Closed 14 years ago

Dynamically inserted select options aren't reflected in accessible tree

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla2.0b8
Tracking Status
blocking2.0 --- final+

People

(Reporter: MarcoZ, Assigned: surkov)

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

STR:
1. With a current nightly build, including the try-server build for bug 498015, file a bug in Core/Disability Access APIs or anywhere you like.
2. Try to request blocking 2.0 on the bug you are filing.

Expected: When focusing the combobox and pressing DownArrow, the ? would be selected.
Actual: The combobox appears empty.

3. Another instance: Go to http://twitter.com/#inbox and log in with your Twitter account.
4. Try to select an item from the combobox you want to send a direct message to.

Expected: An alphabetical list of names should appear.
actual: Nothing is selectable.

I cannot verify whether this is really empty visually, or if it is just us reporting no entries and no focus change.

With FX 3.6, this works fine.

Other, more static comboboxes, work fine.
I can confirm this. Visually it is not empty, but this is the sequence of events we get with ff4:

object:state-changed:invalid-entry(1, 0, None)
        source: [combo box | Send a direct message.]
object:state-changed:invalid-entry
object:state-changed:focused(1, 0, None)
        source: [combo box | Send a direct message.]
object:state-changed:focused

and with ff3 it is:

focus:(0, 0, None)
        source: [menu item | acruiz]
focus:
object:state-changed:focused(1, 0, None)
        source: [menu item | acruiz]
object:state-changed:focused
Fernando, what does "(1, 0, None)" mean?
(In reply to comment #2)
> Fernando, what does "(1, 0, None)" mean?

That comes from spying at-api events, that is really easy.

Here "1" is the detail of the event, that means the focused is true, "0" and "None" are detail2 extra details, that for this kind of event they are going to be always 0 and None
OK. So in the FF4 case the invalid-entry state is becoming true?
The problem here is that dynamically added options are not added to the a11y tree. I'm attaching a mochitest for this.
Attached file mochitest case (obsolete) —
Comment on attachment 495029 [details]
mochitest case

>    //gA11yEventDumpID = "debug";

What does uncommenting this give you?
Attached patch patch (obsolete) — Splinter Review
hacky (didn't think hard), thanks for mochitest
Assignee: nobody → surkov.alexander
Attachment #495029 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #495246 - Flags: review?(fherrera)
blocking2.0: --- → ?
Comment on attachment 495246 [details] [diff] [review]
patch


>+    function addOptions(aID, aCount)

I've hardcoded "aCount = 2" into invoker locally
Attached patch patch2Splinter Review
that's better
Attachment #495246 - Attachment is obsolete: true
Attachment #495247 - Flags: review?(fherrera)
Attachment #495246 - Flags: review?(fherrera)
Comment on attachment 495247 [details] [diff] [review]
patch2

>+  <title>bug 616452 tests</title>

Capital "Bug", please. ;)
(In reply to comment #11)

> >+  <title>bug 616452 tests</title>
> 
> Capital "Bug", please. ;)

changed on"Add select options test"
Summary: Dynamic comboboxes appear empty in FX4, work correctly in FX3. → Dynamically inserted select options aren't reflected in accessible tree
blocking2.0: ? → final+
Comment on attachment 495247 [details] [diff] [review]
patch2

Great, good catch!
r=me
Attachment #495247 - Flags: review?(fherrera) → review+
landed on 2.0 - http://hg.mozilla.org/mozilla-central/rev/ed4d22fad16a
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: