<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>45177</bug_id>
          
          <creation_ts>2010-09-03 08:21:04 -0700</creation_ts>
          <short_desc>[Gtk] atk_text_set_caret_offset fails</short_desc>
          <delta_ts>2010-09-07 11:11:09 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>25531</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Joanmarie Diggs">jdiggs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apinheiro</cc>
    
    <cc>mario</cc>
    
    <cc>mrobinson</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>273954</commentid>
    <comment_count>0</comment_count>
      <attachid>66500</attachid>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2010-09-03 08:21:04 -0700</bug_when>
    <thetext>Created attachment 66500
test case

Steps to reproduce:

1. Load the attached test case and enable caret browsing.

2. Select either the heading or paragraph in Accerciser&apos;s object tree.

3. With that object selected, and using Accerciser&apos;s iPython Console, type:

     acc.queryText().setCaretOffset(0)

4. Alt+Tab back into the browser (i.e. so as not to move the caret accidentally by clicking).

Expected results: The caret would be repositioned at the beginning of the object.

Actual results: The caret is not moved.

I suspect this is a causality of The Great Hierarchy Flattening and hoping Mario has time to take a look. (And add it towards the top of the stack. I&apos;m working on Orca&apos;s Epiphany script, and really, really need to be able to set the caret.)

Thanks in advance!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274656</commentid>
    <comment_count>1</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2010-09-06 08:58:19 -0700</bug_when>
    <thetext>I&apos;m trying to reproduce this bug with latest code from WebKitGTK + Ephiphany (right from the git repos) and all I get is acc.queryText().setCaretOffset() working as expected.

I think it could possible this was an issue still present in the stable releases of ephy/webkit but already fixed in development branches. Joanmarie, if you could test this in your machine at some point to confirm I&apos;m not missing something / doing something wrong, that would be great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275167</commentid>
    <comment_count>2</comment_count>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2010-09-07 11:11:09 -0700</bug_when>
    <thetext>(In reply to comment #1)

&gt; I think it could possible this was an issue still present in
&gt; the stable releases of ephy/webkit but already fixed in
&gt; development branches

&lt;embarrassed&gt;

Yup, that was it. I&apos;m so sorry. Ubuntu unstable has historically kept quite current with releases and thus I made a bogus assumption.

Having just built WebKitGtk, I can confirm that atk_text_set_caret_offset succeeds. Closing as WORKSFORME since JOANIEISANIDIOT is not an option. ;-)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>66500</attachid>
            <date>2010-09-03 08:21:04 -0700</date>
            <delta_ts>2010-09-03 08:21:04 -0700</delta_ts>
            <desc>test case</desc>
            <filename>simple.html</filename>
            <type>text/html</type>
            <size>88</size>
            <attacher name="Joanmarie Diggs">jdiggs</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPjx0aXRsZT5UZXN0PC90aXRsZT48L2hlYWQ+Cjxib2R5Pgo8aDE+VGVzdDwv
aDE+CjxwPkhlbGxvIHdvcmxkPC9wPgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>