Last Comment Bug 402597 - AT-SPI Accessibility:Event.user_data None for ARIA tooltips/alerts
: AT-SPI Accessibility:Event.user_data None for ARIA tooltips/alerts
: access
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: unspecified
: All All
-- normal (vote)
: ---
Assigned To: Ginn Chen
: alexander :surkov
Depends on:
Blocks: aria fox3access
  Show dependency treegraph
Reported: 2007-11-05 13:16 PST by Scott Haeger
Modified: 2008-01-30 07:21 PST (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

patch (1.59 KB, patch)
2008-01-29 02:45 PST, Ginn Chen
aaronlev: review+
dsicore: approval1.9+
Details | Diff | Splinter Review

Description User image Scott Haeger 2007-11-05 13:16:46 PST
The tooltip seen here has the following debug for the Accessibility::Event object.  Note that the any_data field, the target of the object:children-changed:add event, is None. 

source =  [paragraph | ]
type = object:children-changed:add:system
any_data = None
detail1 = 2
detail2 = 0 

This is also the case for dojo tooltips (actually alerts) seen here and the tooltips linked from .

A strange oddity is that object:children-changed:add events for the live region examples were broken (pre-pyatspi migration for Orca) with respect to user_data, but now they work.  Beyond event type, I am not sure how else the two issues are related.
Comment 1 User image Scott Haeger 2007-11-06 06:30:41 PST
Accessibility::Event.any_data is correct if you change the 'span' to a 'p' for the tooltip in .  Please fix span issue (tough one I'm sure) or change the example, possibly mentioning <span> unsupported.

Now investigating why UIUC and dojo examples are unsupported with regard to any_data.
Comment 3 User image Scott Haeger 2007-11-06 07:15:06 PST
The dojo example seen here also uses a span for the tooltip.  However, changing it to a <p> did not fix the problem.  I tried several markup changes to the surrounding tooltip markup, all with no luck.  The event.any_data field is always None for object:children-changed:add:system events.  Also of note is that the object:text-changed:inserted:system events appear to be of little worth to Orca for tooltip announcements.
Comment 4 User image Aaron Leventhal 2007-11-15 13:59:08 PST
See also bug 402049.
Comment 5 User image Scott Haeger 2007-11-27 08:36:07 PST
The UIUC tooltip examples can be fixed by changing their hiding/showing logic to use display:[none|inline] instead of moving the tooltip way off the screen.
Comment 6 User image Ginn Chen 2008-01-29 02:16:38 PST
We should not use
in  nsAccessibleWrap::FireAtkShowHideEvent

because for ATK we don't want to include text leaf nodes as children.

Comment 7 User image Ginn Chen 2008-01-29 02:45:18 PST
Created attachment 299979 [details] [diff] [review]

reuse the code above
Comment 8 User image Aaron Leventhal 2008-01-29 06:15:51 PST
Comment on attachment 299979 [details] [diff] [review]

Nice work Ginn! I bet this solves a lot of other issues with show/hide events!
Comment 9 User image Damon Sicore (:damons) 2008-01-29 10:42:14 PST
Comment on attachment 299979 [details] [diff] [review]

Comment 10 User image Aaron Leventhal 2008-01-29 13:42:43 PST
Checked in for Ginn.
Comment 11 User image Scott Haeger 2008-01-30 07:21:39 PST
This bug and it's sister bug #402049 are both looking much better.

Note You need to log in before you can comment on or make changes to this bug.