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)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: MarcoZ, Assigned: surkov)
Details
(Keywords: regression)
Attachments
(1 file, 2 obsolete files)
4.56 KB,
patch
|
fherrera
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•14 years ago
|
||
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
Comment 2•14 years ago
|
||
Fernando, what does "(1, 0, None)" mean?
Comment 3•14 years ago
|
||
(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
Comment 4•14 years ago
|
||
OK. So in the FF4 case the invalid-entry state is becoming true?
Comment 5•14 years ago
|
||
The problem here is that dynamically added options are not added to the a11y tree. I'm attaching a mochitest for this.
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Comment on attachment 495029 [details]
mochitest case
> //gA11yEventDumpID = "debug";
What does uncommenting this give you?
Assignee | ||
Comment 8•14 years ago
|
||
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)
Assignee | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Assignee | ||
Comment 9•14 years ago
|
||
Comment on attachment 495246 [details] [diff] [review]
patch
>+ function addOptions(aID, aCount)
I've hardcoded "aCount = 2" into invoker locally
Assignee | ||
Comment 10•14 years ago
|
||
that's better
Attachment #495246 -
Attachment is obsolete: true
Attachment #495247 -
Flags: review?(fherrera)
Attachment #495246 -
Flags: review?(fherrera)
Reporter | ||
Comment 11•14 years ago
|
||
Comment on attachment 495247 [details] [diff] [review]
patch2
>+ <title>bug 616452 tests</title>
Capital "Bug", please. ;)
Assignee | ||
Comment 12•14 years ago
|
||
(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
Updated•14 years ago
|
blocking2.0: ? → final+
Comment 13•14 years ago
|
||
Comment on attachment 495247 [details] [diff] [review]
patch2
Great, good catch!
r=me
Attachment #495247 -
Flags: review?(fherrera) → review+
Assignee | ||
Comment 14•14 years ago
|
||
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.
Description
•