Bug 25610 - [GTK] text.caretOffset is reportedly always 0
Summary: [GTK] text.caretOffset is reportedly always 0
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks: 25531
  Show dependency treegraph
 
Reported: 2009-05-06 23:54 PDT by Joanmarie Diggs
Modified: 2009-07-27 14:30 PDT (History)
3 users (show)

See Also:


Attachments
caretoffset.patch (2.42 KB, patch)
2009-05-07 05:28 PDT, Xan Lopez
gustavo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joanmarie Diggs 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:

   acc.queryText().caretOffset

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]
caretoffset.patch

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

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