<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Speak Selection does not work in an iframe"
   href="https://bugs.webkit.org/show_bug.cgi?id=166794#c11">Comment # 11</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Speak Selection does not work in an iframe"
   href="https://bugs.webkit.org/show_bug.cgi?id=166794">bug 166794</a>
              from <span class="vcard"><a class="email" href="mailto:n_wang&#64;apple.com" title="Nan Wang &lt;n_wang&#64;apple.com&gt;"> <span class="fn">Nan Wang</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=299368&amp;action=diff" name="attach_299368" title="patch with test">attachment 299368</a> <a href="attachment.cgi?id=299368&amp;action=edit" title="patch with test">[details]</a></span>
patch with test

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=299368&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=299368&amp;action=review</a>

<span class="quote">&gt;&gt; Source/WebKit2/ChangeLog:8
&gt;&gt; +
&gt; 
&gt; will this also handle the case of just text nodes highlighted (I ask because I don't know if focus moves to a frame if you just highlight text in that frame)</span >

That's how getSelectionContext() works. So I would say yes.

<span class="quote">&gt;&gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:2333
&gt;&gt; +{
&gt; 
&gt; can you put a comment here about who uses this</span >

Ok, but currently only the test uses it.

<span class="quote">&gt;&gt; Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm:116
&gt;&gt; +    [webView accessibilityRetrieveSpeakSelectionContentWithCompletionHandler:^(void) {
&gt; 
&gt; (void) probably not necessary to include
&gt; 
&gt; ^{ probably will work</span >

ok

<span class="quote">&gt;&gt; LayoutTests/accessibility/ios-simulator/speak-selection-content.html:17
&gt;&gt; +&lt;input type=&quot;text&quot; id=&quot;myText&quot; value=&quot;Text outside iframe&quot;&gt;
&gt; 
&gt; let's also test selecting text that's not inside a input type</span >

Ok.</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>