OSDN Git Service

MSHTML virtual buffer isAlive property: There are no longer any states that we can...
authorJames Teh <jamie@jantrid.net>
Tue, 21 Jun 2011 08:31:47 +0000 (18:31 +1000)
committerJames Teh <jamie@jantrid.net>
Tue, 21 Jun 2011 08:31:47 +0000 (18:31 +1000)
This kills the buffer, thereby preventing further queries.
In IE 8 on Windows XP, this stops freezes when moving around in the system menu because the frozen buffer isn't being queried for info on every focus change.
Fixes #1577.

source/virtualBuffers/MSHTML.py

index 1434fa3..b646a12 100644 (file)
@@ -171,6 +171,9 @@ class MSHTML(VirtualBuffer):
                root=self.rootNVDAObject\r
                if not root:\r
                        return False\r
+               if not root.IAccessibleRole:\r
+                       # The root object is dead.\r
+                       return False\r
                states=root.states\r
                if not winUser.isWindow(root.windowHandle) or controlTypes.STATE_EDITABLE in states:\r
                        return False\r