[orca] Ensure we have the top level document as part of live region presentation



commit 742e461d3ef4c8db7eebba003a85c245aeb82066
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Feb 19 12:16:47 2020 +0100

    Ensure we have the top level document as part of live region presentation
    
    Otherwise we might fail to present live regions from embedded documents /
    web applications.

 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 e2c4a2302..189035779 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4604,7 +4604,7 @@ class Utilities(script_utilities.Utilities):
             return False
 
         if not _settingsManager.getSetting('presentLiveRegionFromInactiveTab') \
-           and self.getDocumentForObject(event.source) != self.activeDocument():
+           and self.getTopLevelDocumentForObject(event.source) != self.activeDocument():
             msg = "WEB: Live region source is not in active tab."
             debug.println(debug.LEVEL_INFO, msg, True)
             return False


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