[orca] Don't get the embedded document when an explicit object has been provided



commit 4821dc5cc9e45e7024ba656ae0f42397e80763ad
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Feb 8 11:15:30 2019 -0500

    Don't get the embedded document when an explicit object has been provided

 src/orca/scripts/web/script_utilities.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 4893201cd..9e26d22a0 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -283,7 +283,7 @@ class Utilities(script_utilities.Utilities):
         return None
 
     def documentFrame(self, obj=None):
-        if self.sanityCheckActiveWindow():
+        if not obj and self.sanityCheckActiveWindow():
             document = self.activeDocument()
             if document:
                 return document


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