<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Speech API: `speechSynthesis.clear()` removes utterances from following `speechSynthesis.speak(...)` as well"
   href="https://bugs.webkit.org/show_bug.cgi?id=191745">191745</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Speech API: `speechSynthesis.clear()` removes utterances from following `speechSynthesis.speak(...)` as well
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 12
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Misc.
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>giovanni.piller@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>`speechSynthesis.clear()` removes following `speechSynthesis.speak(....)` instances as well.

JSFiddle: <a href="https://jsfiddle.net/4perg5cs/1/">https://jsfiddle.net/4perg5cs/1/</a>

Code for reproduction:

```
var synth = window.speechSynthesis;

var utterance1 = new SpeechSynthesisUtterance('How about we say this now? This is quite a long sentence to say.');
var utterance2 = new SpeechSynthesisUtterance('We should say another sentence too, just to be on the safe side.');
var utterance3 = new SpeechSynthesisUtterance('WebKit only speaks this.');

synth.speak(utterance1);

synth.cancel();


synth.speak(utterance2);
synth.speak(utterance3);

// actual result: only utterance3 is spoken
// expected result: utterance2 is spoken, then utterance3 is spoken
```

Note: adding multiple `speechSynthesis.speak(....)` before utterance3 won't change the actual result.</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>