GNOME Bugzilla – Bug 426336
[pending] need to refactor Gecko.py's find{Next, Previous}Role
Last modified: 2007-04-13 16:55:38 UTC
As discussed with Will today: 1. find{Next, Previous}Role should return an object rather than set the caret position. All of the go{Next, Previous} methods do the setting. 2. find{Next, Previous}Role should be able to take a starting object as an optional argument so that we can keep looking for a certain role from a given location. Otherwise, we can only find the immediate {Next, Previous} one and that might not be the one we're after.
Created attachment 85821 [details] [review] patch to refactor -- and then some :-) This patch does the refactoring described. It also allows for the cleaning up of some of the go{Next, Previous} methods. But wait, there's more! It turns out that in Firefox you can have two different objects whose role is ROLE_LIST: (un)ordered lists and form field lists. D'oh! L and Shift+L were operating under the assumption that ROLE_LIST meant the former. Since I was cleaning that section up anyway.... Now we check for the latter and ignore them. Will, I think we're good on this one.
> Will, I think we're good on this one. I think we are, too. Thanks!
I havn't noticed any regressions from this. I have no problem with closing it.