Bug 25610

Summary: [GTK] text.caretOffset is reportedly always 0
Product: WebKit Reporter: Joanmarie Diggs (irc: joanie) <jdiggs>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: apinheiro, walker.willie, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 25531    
Description Flags
caretoffset.patch gns: review+

Description Joanmarie Diggs (irc: joanie) 2009-05-06 23:54:34 PDT
Steps to reproduce:

1. With caret browsing enabled, position the caret within some text.

2. Using Accerciser, select the accessible which contains that text.

3. In Accerciser's IPython console, type:


Expected result: The offset of the caret would be returned.

Actual result: 0 is always returned.

Xan, this one somehow escaped my notice. Sorry! Would it be possible for this one to be moved towards the top of your list? (I suspect/hope it's an easy one.) Thanks!
Comment 1 Xan Lopez 2009-05-07 05:28:08 PDT
Created attachment 30095 [details]

Correctly implement the get_caret_offset function.
Comment 2 Gustavo Noronha (kov) 2009-05-07 05:31:55 PDT
Comment on attachment 30095 [details]

Looks good!
Comment 3 Xan Lopez 2009-05-07 05:36:33 PDT
Landed as r43342, closing.
Comment 4 Joanmarie Diggs (irc: joanie) 2009-07-27 14:30:37 PDT
Verifying. Thanks!