GNOME Bugzilla – Bug 486084
[pyatspi] Orca doesn't work in Firefox 3
Last modified: 2007-10-12 21:19:43 UTC
Step to reproduce: 1. Try to navigate with the arrows on a web page Expected results: It would work ;-) Actual results: It doesn't. Oh and it generates a traceback: Traceback (most recent call last):
+ Trace 169779
s.processObjectEvent(back_compat_event)
self.listeners[key](event)
default.Script.onStateChanged(self, event)
self.onFocus(event)
default.Script.onFocus(self, event)
orca.setLocusOfFocus(event, newFocus)
orca_state.locusOfFocus)
newLocusOfFocus)
self.setCaretPosition(newLocusOfFocus, caretOffset)
caretContext = self.getCaretContext()
documentFrame = self.getDocumentFrame()
child = self.app.child(i)
I took an initial stab at fixing it. Patch to follow.
Created attachment 97130 [details] [review] first attempt Reminder: I'm still new to all of this and really new to pyatspi migration. But this seems to solve the problem. Will/Eitan, am I even in the ballpark?
Yup, thats pretty much right. The only think I would change is the role checking, instead of: if child.getRoleName == "frame" You should do: if child.getRole() == pyatspi.ROLE_FRAME I'll add that to the wiki.
Looks good to me, too. :-)
Created attachment 97134 [details] [review] made Eitan's changes This seems to work as well. :-) Thanks Eitan!
Patch committed to trunk. Thanks guys. Moving to pending.
This seems much better. I'm using orca from trunk to type this comment.
Thanks Mike. Closing as FIXED.