Closed Bug 397485 Opened 17 years ago Closed 17 years ago

Embed characters to children not 1:1

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: scott, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file, 1 obsolete file)

The slider seen here http://www.mozilla.org/access/dhtml/pretty-slider.htm shows that it has an embed character but has a childCount=0. This should not occur because embed characters to children should be a 1:1 match.
Blocks: orca
Blocks: fox3access
Scott, is this still a problem?
Keywords: access
Yes, this is still an issue. However, Orca now has safe guards for this so it is a low priority item.
Assignee: aaronleventhal → surkov.alexander
ROLE_SLIDER is in nsAccessible::MustPrune() So the childCount is always zero. Do we want to change that?
btw: the child in the slider is <span class "bar">, the moving square bar.
Ginn, we don't want extra image children in a slider. It confuses screen readers like JAWS that have doc browsing modes. It would be better if MustPrune()==TRUE means that there are no embedded object chars in something, and that it doesn't support nsIAccessibleHyperText.
Actually I'm not sure, because nsIAccessible does have the children. We'd need the embedded object chars when exposing it there and not when exposing it to ATK. Yuck.
Ginn, I am looking at it from an ATK point of view where I am only given a slider object. It should have no children either in the Accessible::childCount field or as and embed character in the text interface. I just checked with Accerciser and it is still an issue. As mentioned earlier, this is no longer a major issue for Orca.
Scott, BTW, any image child of the slider should probably be role="presentation". But, I believe there is a funky 0x0 object there which takes focus, which is odd in any case.
Sorry, I'm confused. The child of the slider is not focusable. Can we just disable AccessibleText interface and AccessibleTextEditable interface for slider?
Ginn, that will help with slider, it's a good idea. It won't help with button though, and other items where MustPrune() is true, because we need to expose AccessibleText interface there. However, they could have an image child.
Aaron, if we don't care nsIAccessible, can we just replace kEmbeddedObjectChar to whitespace in this case? Sounds like a simple solution?
Attached patch quick ginn's version (obsolete) — Splinter Review
Attachment #288494 - Flags: review?(aaronleventhal)
Attachment #288494 - Flags: review?(ginn.chen)
Comment on attachment 288494 [details] [diff] [review] quick ginn's version TextLength() and other things that increment the offset by 1 for embedded objects would need to be changed. I think that's why Ginn was suggesting a space character as opposed to no character.
Attachment #288494 - Flags: review?(ginn.chen)
Attachment #288494 - Flags: review?(aaronleventhal)
Attachment #288494 - Flags: review-
Surkov, another problem with this approach is described in comment 7. When MustPrune() is true we only prune for ATK, AT-SPI and UA. We dan't prune for nsIAccessible. This is going to take a little more thought.
(In reply to comment #15) > Surkov, another problem with this approach is described in comment 7. When > MustPrune() is true we only prune for ATK, AT-SPI and UA. We dan't prune for > nsIAccessible. We do (http://lxr.mozilla.org/mozilla/source/accessible/src/msaa/nsAccessibleWrap.cpp#242).
Attached patch patchSplinter Review
Attachment #288494 - Attachment is obsolete: true
Attachment #288660 - Flags: review?(aaronleventhal)
Comment on attachment 288660 [details] [diff] [review] patch I think space is a good idea, because if there is an embedded object char like an image between two words we do want to separate them somehow. nit: hans't -> hasn't
Attachment #288660 - Flags: review?(aaronleventhal) → review+
Attachment #288660 - Flags: approval1.9?
Attachment #288660 - Flags: approval1.9? → approval1.9+
checked in, unfortunately I forot to fix misspeling :(
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: