<?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>199282</bug_id>
          
          <creation_ts>2019-06-27 12:11:51 -0700</creation_ts>
          <short_desc>AX: [ATK] Text in anonymous blocks not emitting caret-moved events</short_desc>
          <delta_ts>2019-06-27 12:16:28 -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>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joanmarie Diggs">jdiggs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1548569</commentid>
    <comment_count>0</comment_count>
      <attachid>373043</attachid>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2019-06-27 12:11:51 -0700</bug_when>
    <thetext>Created attachment 373043
pyatspi accessible-event listener: text-caret-moved.py

Steps to reproduce:
1. Load the attached test case in Epiphany or MiniBrowser
2. Enable caret browsing
3. Launch the attached pyatspi accessible-event listener in a terminal
4. Click within each line of text in the test case and then arrow left and right

Expected results: With each press of the arrow keys, the accessible-event listener would dump out the new caret offset, the new character at that offset, and the new line at that offset.

Actual results: The expected results happen for two of the lines, but completely fail in the other two lines due to no caret-moved events being emitted.

I might be wrong, but it appears the failures occur when the text is in an anonymous block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548570</commentid>
    <comment_count>1</comment_count>
      <attachid>373044</attachid>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2019-06-27 12:12:19 -0700</bug_when>
    <thetext>Created attachment 373044
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548573</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-27 12:13:59 -0700</bug_when>
    <thetext>&lt;rdar://problem/52276130&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548574</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-27 12:14:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/52276132&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548576</commentid>
    <comment_count>4</comment_count>
    <who name="Joanmarie Diggs">jdiggs</who>
    <bug_when>2019-06-27 12:15:07 -0700</bug_when>
    <thetext>(Sorry for being spammy, but I forgot to state why this matters.)

When the user is arrowing in text, Orca gets caret-moved events which it responds to by speaking and (optionally displaying in braille) the new location. If there&apos;s radio silence from webkit, the user who is blind gets the same from Orca. Thus the content in question cannot be read.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548577</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-27 12:16:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/52276291&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>373043</attachid>
            <date>2019-06-27 12:11:51 -0700</date>
            <delta_ts>2019-06-27 12:11:51 -0700</delta_ts>
            <desc>pyatspi accessible-event listener: text-caret-moved.py</desc>
            <filename>text-caret-moved.py</filename>
            <type>text/x-python</type>
            <size>575</size>
            <attacher name="Joanmarie Diggs">jdiggs</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9weXRob24zCgppbXBvcnQgcHlhdHNwaQoKZGVmIGxpc3RlbmVyKGUpOgogICAg
YXR0cmlidXRlcyA9IGUuc291cmNlLmdldEF0dHJpYnV0ZXMoKQogICAgaWYgKCd0b29sa2l0Omd0
aycpIGluIGF0dHJpYnV0ZXM6CiAgICAgICAgcmV0dXJuCgogICAgdGV4dCA9IGUuc291cmNlLnF1
ZXJ5VGV4dCgpCiAgICBwcmludCgiXG5DYXJldCBtb3ZlZCB0byBvZmZzZXQgJWkgaW4gJXMiICUg
KGUuZGV0YWlsMSwgZS5zb3VyY2UpKQogICAgcHJpbnQoIkNoYXJhY3RlciBhdCBvZmZzZXQ6ICcl
cycgKCVpLCAlaSkiICUgdGV4dC5nZXRUZXh0QXRPZmZzZXQoZS5kZXRhaWwxLCBweWF0c3BpLlRF
WFRfQk9VTkRBUllfQ0hBUikpCiAgICBwcmludCgiTGluZSBhdCBvZmZzZXQ6ICclcycgKCVpLCAl
aSkiICUgdGV4dC5nZXRUZXh0QXRPZmZzZXQoZS5kZXRhaWwxLCBweWF0c3BpLlRFWFRfQk9VTkRB
UllfTElORV9TVEFSVCkpCgpweWF0c3BpLlJlZ2lzdHJ5LnJlZ2lzdGVyRXZlbnRMaXN0ZW5lcihs
aXN0ZW5lciwgIm9iamVjdDp0ZXh0LWNhcmV0LW1vdmVkIikKcHlhdHNwaS5SZWdpc3RyeS5zdGFy
dCgpCgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>373044</attachid>
            <date>2019-06-27 12:12:19 -0700</date>
            <delta_ts>2019-06-27 12:12:19 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>text-caret-moved-fail.html</filename>
            <type>text/html</type>
            <size>228</size>
            <attacher name="Joanmarie Diggs">jdiggs</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8c3Bhbj5TcGFuIGluIGJvZHk6IGZhaWxzPC9zcGFuPgo8ZGl2PjxzcGFu
PlNwYW4gaW4gZGl2OiB3b3Jrczwvc3Bhbj48L2Rpdj4KPGJsb2NrcXVvdGU+CjxwPjxzcGFuPlNw
YW4gaW4gcCBpbiBibG9ja3F1b3RlOiB3b3Jrczwvc3Bhbj48L3A+CjxzcGFuPlNwYW4gaW4gcCBp
biBibG9ja3F1b3RlOiBmYWlsczwvc3Bhbj4KPC9ibG9ja3F1b3RlPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>