[Nvda-dev] commit r1945 - trunk/source/NVDAObjects/IAccessible

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Nvda-dev] commit r1945 - trunk/source/NVDAObjects/IAccessible

NVDA Subversion
Author: mdcurran
Date: Tue Apr 22 11:27:48 2008
New Revision: 1945

Log:
IAccessible NVDAObject's parent property: fix a very bad bug on my part, where Audacity would not work at all with NVDA (NVDA would just freeze). This may also fix a few other random crashes. The bug was introduced in r1870 where if the window class started with 'Mozilla' the Gecko node_child_of navRelation was tried, before trying accParent. However, for some odd reason, I had left some oder test code directly below it, which  tried node_child_of no matter or not it was a Mozilla window. Of course many native implementations of MSAA would not understand this value and just get confused.

Modified:
   trunk/source/NVDAObjects/IAccessible/__init__.py

Modified: trunk/source/NVDAObjects/IAccessible/__init__.py
==============================================================================
--- trunk/source/NVDAObjects/IAccessible/__init__.py (original)
+++ trunk/source/NVDAObjects/IAccessible/__init__.py Tue Apr 22 11:27:48 2008
@@ -415,9 +415,6 @@
  res=IAccessibleHandler.accNavigate(self.IAccessibleObject,self.IAccessibleChildID,IAccessibleHandler.NAVRELATION_NODE_CHILD_OF)
  if res:
  return IAccessible(IAccessibleObject=res[0],IAccessibleChildID=res[1])
- res=IAccessibleHandler.accNavigate(self.IAccessibleObject,self.IAccessibleChildID,0x1005)
- if res:
- return IAccessible(IAccessibleObject=res[0],IAccessibleChildID=res[1])
  res=IAccessibleHandler.accParent(self.IAccessibleObject,self.IAccessibleChildID)
  if res:
  if res[0].accRole(res[1])!=IAccessibleHandler.ROLE_SYSTEM_WINDOW or IAccessibleHandler.accNavigate(self.IAccessibleObject,self.IAccessibleChildID,IAccessibleHandler.NAVDIR_NEXT) or IAccessibleHandler.accNavigate(self.IAccessibleObject,self.IAccessibleChildID,IAccessibleHandler.NAVDIR_PREVIOUS):