GNOME Bugzilla – Bug 455259
Orca speaks raw HTML for Java labels
Last modified: 2021-05-17 15:39:24 UTC
Orca speaks the raw HTML for Java labels. For example, the SwingSet2 TabbedPane demo has a page tab with the label "Bouncing Babies!" in blue. Orca speaks "<html><font color=blue><bold><center>Bouncing Babies!</center></bold></font></html>". When the page tab gets focus, the J2SE_access_bridge.onStateChanged method gets called with the event.source.name "<html><font color=blue><bold><center>Bouncing Babies!</center></bold></font></html> What's the best thing to do here? I haven't checked yet, but Orca probably has a method to convert the HTML to a string that's presentable to the user.
I don't believe the raw HTML should be exposed via the AT-SPI. This sounds like a Java accessibility platform bug.
I'll take some time to looke at it.
While we've concluded this is an application problem, I'm going to leave this open for now. We might consider analyzing every single label we get from Java for HTML markup and then strip it. I'd much rather fix the problem at the application if we can, though.
This one is "blocked" but there doesn't appear to be an open blocking bug any more. Jeff/Will, what bug are we blocking against?
I don't think there is a blocking bug for this one. :-( I'll remove the "[blocked]" indicator for now.
Created attachment 159380 [details] Screen shot illustrating the problems
Looking at this with Accerciser (see the screenshot from comment 6): 1. I can confirm that the accessible name of the page tab contains HTML. 2. The page tab does not implement the accessible text interface. 3. The page tab has no children (like the other page tabs do). In other words, if we wanted to hack around this issue on the Orca side of things, there's no alternative accessible object or interface to go to. We'd have to parse markup. And that ain't right.... Ke, I'm assigning this to you in the hopes that you have a brilliant idea which you can implement on the Java side of things. :-) I hope that's alright. And thanks in advance!
Ke, any updates on this? Thanks!
(3.0 Planning Spam-o-rama. Sorry!)
Transferring because it is not an Orca bug and there's nothing I can do in Orca to fix it. :(
[Mass-resetting default assignee, see bug 705890. Please reclaim this bug report by setting the assignee to yourself if you still plan to work on this. Thanks!]
Is this still a problem?
[Moving at-spi/java-atk-wrapper bugs to separate product. See bug 740075]
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/java-atk-wrapper/-/issues/7.