[Webkit-unassigned] [Bug 211776] REGRESSION (iOS 13.4.1): SpeechSynthesisUtterance.onend event won't fire on cancel().

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 12 08:03:13 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=211776

chris fleizach <cfleizach at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |cfleizach at apple.com
         Resolution|---                         |WORKSFORME

--- Comment #2 from chris fleizach <cfleizach at apple.com> ---
(In reply to Takao Baba from comment #0)
> Created attachment 399117 [details]
> testcase
> 
> Step to reproduce:
> 1. Open attached test.html
> 2. Click "play" button.
> 3. Click "stop" button before the speaking finished.
> 
> Expected behavior:
> An alert "on end" should be shown.
> 
> Actual result:
> No alert is shown.
> 
> UA:
> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML,
> like Gecko) Version/13.1 Safari/605.1.15
> 
> Remarks:
> This issue occurs on iOS 13.4.1, while iOS 13.3.1 does not have the issue.
> Able to reproduce on both simulator and real device.
> 
> (Probably Safari on macOS has same issue, but details have not been
> confirmed.)

It looks like "onerror" is fired when a cancel event is generated. I think this is correct based on spec usage


4.2.7. SpeechSynthesisErrorEvent Attributes

The SpeechSynthesisErrorEvent is the interface used for the SpeechSynthesisUtterance error event.

error attribute, of type SpeechSynthesisErrorCode, readonly
The errorCode is an enumeration indicating what has gone wrong. The values are:
"canceled"
A cancel method call caused the SpeechSynthesisUtterance to be removed from the queue before it had begun being spoken.

https://wicg.github.io/speech-api/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200512/79359324/attachment.htm>


More information about the webkit-unassigned mailing list