[orca] Check for a URI before concluding a document frame is a top-level web app



commit d3f43b98cd522af2648a89fd3e4e021c57409529
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Oct 22 22:25:07 2015 -0400

    Check for a URI before concluding a document frame is a top-level web app

 src/orca/scripts/web/script_utilities.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 2062a18..e47afb6 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1308,9 +1308,11 @@ class Utilities(script_utilities.Utilities):
             return False
 
         if role == pyatspi.ROLE_EMBEDDED and not self.getDocumentForObject(obj.parent):
-            msg = "WEB: %s is top-level web application" % obj
-            debug.println(debug.LEVEL_INFO, msg)
-            return True
+            uri = self.documentFrameURI()
+            if uri:
+                msg = "WEB: %s is top-level web application. URI: %s" % (obj, uri)
+                debug.println(debug.LEVEL_INFO, msg)
+                return True
 
         return False
 


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