[orca] Never generate unrelated labels for web content



commit f859bd94c8b53c33514f27095f679ef01c74244d
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 20 17:58:27 2017 -0500

    Never generate unrelated labels for web content

 src/orca/scripts/web/script_utilities.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 48e8b77..be400b0 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1605,6 +1605,12 @@ class Utilities(script_utilities.Utilities):
 
         return roles
 
+    def unrelatedLabels(self, root, onlyShowing=True):
+        if not (root and self.inDocumentContent(root)):
+            return super().unrelatedLabels(root, onlyShowing)
+
+        return []
+
     def isTextBlockElement(self, obj):
         if not (obj and self.inDocumentContent(obj)):
             return False


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