[orca] Be sure we're in document content before calling an object a "clickable"



commit fe70f1984633b47fe20c4bdccc2f38fd4d0972e2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Aug 18 19:08:45 2014 -0400

    Be sure we're in document content before calling an object a "clickable"
    
    The clickable feature is designed for document elements with onClick
    handlers and which cannot be discovered or interacted with via the
    keyboard.

 .../scripts/toolkits/Gecko/script_utilities.py     |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py 
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 56ebe71..8caf788 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -601,6 +601,9 @@ class Utilities(script_utilities.Utilities):
         return objects
 
     def isClickableElement(self, obj):
+        if not self._script.inDocumentContent(obj):
+            return False
+
         # For Gecko, we want to identify things which are ONLY clickable.
         # Things which are focusable, while technically "clickable", are
         # easily discoverable (e.g. via role) and activatable (e.g. via


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]