<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: new lines in content editable elements don't notify accessibility"
   href="https://bugs.webkit.org/show_bug.cgi?id=153361#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: new lines in content editable elements don't notify accessibility"
   href="https://bugs.webkit.org/show_bug.cgi?id=153361">bug 153361</a>
              from <span class="vcard"><a class="email" href="mailto:d_russell&#64;apple.com" title="Doug Russell &lt;d_russell&#64;apple.com&gt;"> <span class="fn">Doug Russell</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=153361#c8">comment #8</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=272234&amp;action=diff" name="attach_272234" title="Patch">attachment 272234</a> <a href="attachment.cgi?id=272234&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=272234&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=272234&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/accessibility/AXObjectCache.cpp:121
&gt; &gt; +    if (AXObjectCache::accessibilityEnabled() &amp;&amp; selection.isRange())
&gt; 
&gt; if ax is not enabled it seems like we should not do anything</span >

Meaning we shouldn't initialize m_replacedText?

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/accessibility/AXObjectCache.cpp:124
&gt; &gt; +        m_replacedText = String();
&gt; 
&gt; this seems unnecessary. i think this is what m_replacedText will be
&gt; initialized to regardless</span >

I'll have to check.

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/CompositeEditCommand.cpp:637
&gt; &gt; +    default:
&gt; 
&gt; feel like we should ASSERT_NOT_REACHED for default: and expect someone will
&gt; pass in Cut or Delete</span >

Will do.

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/DictationCommand.cpp:113
&gt; &gt; +    notifyAccessibilityForTextChange(AXTextEditTypeDictation, m_textToInsert)
&gt; 
&gt; check Internals.cpp for whether dictation has some stubs to direct data
&gt; through</span >

Will do.

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/Editor.cpp:543
&gt; &gt; +    applyCommand(cmd);
&gt; 
&gt; this change seems unneeded</span >

I need it for cmd-&gt;replacedText()

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/Editor.cpp:557
&gt; &gt; +    if (AXObjectCache::accessibilityEnabled() &amp;&amp; editingAction == EditActionPaste)
&gt; 
&gt; seems like we should cleanup memory when not being used</span >

I'm inclined to reclaim the cmd-&gt;replacedText() memory after this if regardless since it's not used again (although it might be in the incomplete undo logic.

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/Editor.cpp:1283
&gt; &gt; +    cache-&gt;postTextStateChangeNotification(node, AXTextEditTypeCut, text, start);
&gt; 
&gt; do we need to check for node == nil here? can postTextState changes handle
&gt; the nil node case instead?</span >

In the nil node case postTextStateChangeNotification ends up using the web area for the notification (on OS X) so I could drop that check.

<span class="quote">&gt; 
&gt; &gt; Source/WebCore/editing/InsertTextCommand.cpp:143
&gt; &gt; +        // FIXME: Need to capture the deleted selection and post replacement notification after insertion
&gt; 
&gt; any fixme: should probably have a webkit bug tied to it</span >

That's out of date. I'll remove it.

<span class="quote">&gt; 
&gt; &gt; LayoutTests/accessibility/mac/value-change-userinfo.html:195
&gt; &gt; +//             execExtendSelectionRightByCharacterCommand();
&gt; 
&gt; should this be deleted?</span >

Yes.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>