<?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>132662</bug_id>
          
          <creation_ts>2014-05-07 14:01:42 -0700</creation_ts>
          <short_desc>AX: VoiceOver is ignoring live regions created after the document loads</short_desc>
          <delta_ts>2014-05-28 13:05:22 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>124381</dup_id>
          
          <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="Dominic Mazzoni">dmazzoni</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cfleizach</cc>
    
    <cc>jcraig</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1007427</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2014-05-07 14:01:42 -0700</bug_when>
    <thetext>The attached html file demonstrates the bug. In Safari 7.0.3 on OS X 10.9.2, when you add an additional live region to the page and then change its text, nothing is announced.

I was able to figure out a hacky workaround in Chromium that would probably work in WebKit/Mac too - if I remove the wrapper object for the root webarea node and recreate it, then fire a notification on it, that seems to trick VoiceOver into re-scanning the document for live regions and then it works correctly.

Does this look like a VoiceOver bug or is there a more proper fix that can be applied in WebKit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007428</commentid>
    <comment_count>1</comment_count>
      <attachid>231020</attachid>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2014-05-07 14:02:17 -0700</bug_when>
    <thetext>Created attachment 231020
Html that demonstrates the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007429</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-05-07 14:02:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/16844111&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007430</commentid>
    <comment_count>3</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-05-07 14:05:09 -0700</bug_when>
    <thetext>I haven&apos;t tried out your test case, but this may have been fixed with

        AX: Improve ARIA live region reliability by sending notifications when live regions are created/shown and hidden/destroyed
        https://bugs.webkit.org/show_bug.cgi?id=124381</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007445</commentid>
    <comment_count>4</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2014-05-07 14:51:35 -0700</bug_when>
    <thetext>You&apos;re right, that will probably solve it.

I can&apos;t find docs for NSAccessibilityLiveRegionCreatedNotification - can you tell me what OS X version added support for it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007447</commentid>
    <comment_count>5</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-05-07 14:55:25 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; You&apos;re right, that will probably solve it.
&gt; 
&gt; I can&apos;t find docs for NSAccessibilityLiveRegionCreatedNotification - can you tell me what OS X version added support for it?

It&apos;s a web only thing. It&apos;s just defined in WebCore as is</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007452</commentid>
    <comment_count>6</comment_count>
    <who name="Dominic Mazzoni">dmazzoni</who>
    <bug_when>2014-05-07 15:06:37 -0700</bug_when>
    <thetext>The example I uploaded still doesn&apos;t work correctly when I try today&apos;s WebKit Nightly on OS X 10.9.2, so I&apos;m assuming that AXLiveRegionCreated will only be supported in a future version of VoiceOver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1007457</commentid>
    <comment_count>7</comment_count>
    <who name="chris fleizach">cfleizach</who>
    <bug_when>2014-05-07 15:26:57 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; The example I uploaded still doesn&apos;t work correctly when I try today&apos;s WebKit Nightly on OS X 10.9.2, so I&apos;m assuming that AXLiveRegionCreated will only be supported in a future version of VoiceOver.

that is a fair assumption</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1012273</commentid>
    <comment_count>8</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2014-05-28 13:05:22 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 124381 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>231020</attachid>
            <date>2014-05-07 14:02:17 -0700</date>
            <delta_ts>2014-05-07 14:02:17 -0700</delta_ts>
            <desc>Html that demonstrates the bug</desc>
            <filename>live.html</filename>
            <type>text/html</type>
            <size>1337</size>
            <attacher name="Dominic Mazzoni">dmazzoni</attacher>
            
              <data encoding="base64">PGJvZHk+CiAgPHN0eWxlPgogICAgZGl2IHsgbWFyZ2luOiAxZW07IH0KICAgICpbYXJpYS1saXZl
XSB7IGJvcmRlcjogMXB4IHNvbGlkICMwNjA7IH0KICA8L3N0eWxlPgogIDxzY3JpcHQ+CiAgICBm
dW5jdGlvbiBhZGRMaXZlUmVnaW9uKCkgewogICAgICB2YXIgcjIgPSBkb2N1bWVudC5jcmVhdGVF
bGVtZW50KCJkaXYiKTsKICAgICAgcjIuc2V0QXR0cmlidXRlKCJhcmlhLWxpdmUiLCAicG9saXRl
Iik7CiAgICAgIHIyLmlkID0gInIyIjsKICAgICAgcjIuaW5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