[orca] Chromium: Remove index-in-parent hack
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Chromium: Remove index-in-parent hack
- Date: Fri, 18 Jan 2019 18:57:27 +0000 (UTC)
commit a053805e3880f4bb8d41e6e22c8d32ed6a78ef6a
Author: Joanmarie Diggs <jd blockhead hsd1 nh comcast net>
Date: Fri Jan 18 13:56:55 2019 -0500
Chromium: Remove index-in-parent hack
.../scripts/toolkits/Chromium/script_utilities.py | 25 ----------------------
1 file changed, 25 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Chromium/script_utilities.py
b/src/orca/scripts/toolkits/Chromium/script_utilities.py
index 4bc299669..98251e00b 100644
--- a/src/orca/scripts/toolkits/Chromium/script_utilities.py
+++ b/src/orca/scripts/toolkits/Chromium/script_utilities.py
@@ -78,31 +78,6 @@ class Utilities(web.Utilities):
self._documentsEmbeddedBy[hash(frame)] = result
return result
- def isZombie(self, obj):
- if not super().isZombie(obj):
- return False
-
- # Things (so far) seem to work as expected for document content -- except the
- # document frame itself.
- if not self.isDocument(obj) and self.inDocumentContent(obj):
- return True
-
- # HACK for other items, including (though possibly not limited to) menu items
- # (e.g. when you press Alt+F and arrow) and the location bar popup.
- try:
- index = obj.getIndexInParent()
- except:
- msg = "CHROMIUM: Exception getting index in parent for %s" % obj
- debug.println(debug.LEVEL_INFO, msg, True)
- return True
-
- if index == -1 and self.isShowingAndVisible(obj):
- msg = "CHROMIUM: INDEX IN PARENT OF -1 HACK: Ignoring bad index of %s" % obj
- debug.println(debug.LEVEL_INFO, msg, True)
- return False
-
- return True
-
def selectedChildCount(self, obj):
count = super().selectedChildCount(obj)
if count or "Selection" in pyatspi.listInterfaces(obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]