Bug 30878

Summary: [Gtk] atk_text_get_text() fails in entries when the end_offset is -1
Product: WebKit Reporter: Joanmarie Diggs <jdiggs>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apinheiro, commit-queue, walker.willie, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on:    
Bug Blocks: 25531    
Attachments:
Description Flags
substitute String length for an end_offset of -1 none

Description Joanmarie Diggs 2009-10-28 14:09:23 PDT
Steps to reproduce:

1. Navigate to Google
2. Type "foo" in the search entry
3. Launch Accerciser 
4. Select the object of ROLE_ENTRY and get into the iPython console

   In [1]: acc.queryText().getText(0, -1)
   Out[1]: '' <--- wrong (should be 'foo')

   In [2]: acc.queryText().getText(0, 3)
   Out[2]: 'foo' <--- (everything else seems to work; just not an end_offset at -1)

Also note that if you select other objects which implement AtkText (including the object of ROLE_TEXT which is the descendant of the entry above), atk_text_get_text(0, -1) works as expected.
Comment 1 Joanmarie Diggs 2009-11-06 19:35:30 PST
Created attachment 42683 [details]
substitute String length for an end_offset of -1
Comment 2 Xan Lopez 2009-11-07 00:48:12 PST
Comment on attachment 42683 [details]
substitute String length for an end_offset of -1

Looks good to me.
Comment 3 WebKit Commit Bot 2009-11-07 01:03:33 PST
Comment on attachment 42683 [details]
substitute String length for an end_offset of -1

Clearing flags on attachment: 42683

Committed r50615: <http://trac.webkit.org/changeset/50615>
Comment 4 WebKit Commit Bot 2009-11-07 01:03:37 PST
All reviewed patches have been landed.  Closing bug.