After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523759 - Gecko.getCharacterOffsetInParent() needs to check the parent for text
Gecko.getCharacterOffsetInParent() needs to check the parent for text
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.21.x
Other All
: Normal normal
: 2.22.1
Assigned To: Joanmarie Diggs (IRC: joanie)
Orca Maintainers
Depends on:
Blocks: 404403
 
 
Reported: 2008-03-22 00:01 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2008-03-26 21:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
revision 1 (3.58 KB, patch)
2008-03-22 01:21 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2008-03-22 00:01:58 UTC
A couple of weeks ago, the Firefox a11y guys implemented the Hyperlink interface for imagemap links (yea!).  Unfortunately, getCharacterOffsetInParent() uses the Hyperlink interface to determine where an embedded object character is w.r.t. the parent's text -- without first checking to see if the parent actually has text.  This is why line navigation -- and actually all caret navigation -- broke in the vicinity of imagemaps.

Running the regression tests on what should be a simple patch. Stay tuned! :-)
Comment 1 Joanmarie Diggs (IRC: joanie) 2008-03-22 01:21:57 UTC
Created attachment 107778 [details] [review]
revision 1

Check to see if the parent implements the accessible Text interface. (Also updated a regression test to remove the "KNOWN ISSUE" I had added when this problem presented itself.).

This is pylinted and regression tested.  

Mike please test.

Will, can you think of an occasion where an object implements the Hyperlink interface, the parent does *not* implement the Text interface, and we still want to return an offset (rather than -1)?

Thanks.
Comment 2 Mike Pedersen 2008-03-22 19:23:03 UTC
So far I'm not seeing any problems related to this patch.  
Comment 3 Willie Walker 2008-03-25 17:51:42 UTC
(In reply to comment #1)
> Will, can you think of an occasion where an object implements the Hyperlink
> interface, the parent does *not* implement the Text interface, and we still
> want to return an offset (rather than -1)?

I cannot.  There's something in the back of my mind regarding a recent conversation with someone about hyperlinks that I cannot remember right now, but I don't think it is related to the above.
Comment 4 Mike Pedersen 2008-03-25 17:52:46 UTC
This tests out OK but I don't know if it should be checked in without Will's comments. 
Comment 5 Joanmarie Diggs (IRC: joanie) 2008-03-26 17:38:18 UTC
Patch committed to the 2-22 branch and to trunk.  Moving to pending.