orca r4481 - in branches/gnome-2-24: . src/orca/scripts/toolkits/Gecko



Author: joanied
Date: Sat Jan 31 00:44:59 2009
New Revision: 4481
URL: http://svn.gnome.org/viewvc/orca?rev=4481&view=rev

Log:
* src/orca/scripts/toolkits/Gecko/script.py:
  Fix for bug #537303 - Certain FF3 add-ons interfere with Orca's
  ability to provide access to content.


Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py

Modified: branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py	(original)
+++ branches/gnome-2-24/src/orca/scripts/toolkits/Gecko/script.py	Sat Jan 31 00:44:59 2009
@@ -2599,6 +2599,14 @@
                         else:
                             documentFrame = None
 
+        # Certain add-ons can interfere with the above approach. But we
+        # should have a locusOfFocus. If so look up and try to find the
+        # document frame. See bug 537303.
+        #
+        if not documentFrame:
+            documentFrame = self.getAncestor(orca_state.locusOfFocus,
+                                             [pyatspi.ROLE_DOCUMENT_FRAME],
+                                             [pyatspi.ROLE_FRAME])
         return documentFrame
 
     def getURI(self, obj):



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