VirtualBox

Ticket #3588 (new defect)

Opened 5 years ago

Last modified 3 years ago

WindowFromAccessibleObject() fails for VirtualBox IAccessible objects

Reported by: jteh Owned by:
Priority: major Component: GUI
Version: VirtualBox 2.1.4 Keywords: accessibility IAccessible
Cc: Guest type: other
Host type: Windows

Description

WindowFromAccessibleObject() is used to retrieve the window handle (hwnd) of an IAccessible (MSAA) object. When calling WindowFromAccessibleObject() on any IAccessible object exposed by VirtualBox, an RPC_E_CANTCALLOUT_ININPUTSYNCCALL error is returned. The text of this error is: "An outgoing call cannot be made since the application is dispatching an input-synchronous call."

WindowFromAccessibleObject() uses the GetWindow() method of the IOleWindow interface. I suspect it is this that is failing. Note that this works fine in other QT4 applications such as Nokia PC Suite and  Rockbox Utility, so this appears to be a peculiarity of VirtualBox.

 NVDA needs to retrieve the window handle for any IAccessible object, as there is no unique identifier for IAccessible and we need some way of reasonably checking for equality between two objects.

Change History

comment:1 Changed 5 years ago by jteh

Ack. The ! shouldn't be at the start of the summary - I forgot Trac doesn't do wiki formatting for ticket summaries. :(

comment:2 Changed 5 years ago by frank

  • Summary changed from !WindowFromAccessibleObject() fails for VirtualBox IAccessible objects to WindowFromAccessibleObject() fails for VirtualBox IAccessible objects

comment:3 Changed 5 years ago by jteh

This issue causes NVDA's navigation to related objects (parents, children and sibblings) to fail. This results in many problems with VirtualBox and NVDA, such as ignored focus events for list/tree controls (see comment:ticket:3590:1), inability to read captions in dialogs and broken object navigation commands. We could try to make NVDA more tolerant when a window handle cannot be retrieved, but this causes comparison problems and means that information such as process ID and window class name cannot be retrieved, which is why we do not currently allow this.

comment:4 Changed 3 years ago by jteh

This now seems to work for *some* accessible objects, but still not all. It works for lists, trees, toolbars, etc. However, it still fails for the outer UI (the application object, panes, etc.)

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use