[wpt-sync] Sync PR 36665 - Introduce a new enum type, mojom::SpeechSynthesisEndReason
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox108 fixed)
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36665 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36665
Details from upstream follow.
Julie Jeongeun Kim <jkim@igalia.com> wrote:
Introduce a new enum type, mojom::SpeechSynthesisEndReason
This CL introduces a new enum type, mojom::SpeechSynthesisEndReason,
to explain why an utterance is finished. The enum values are
kInterrupted, kCancelled, kErrorOccurred, and kRegularEnd. It's passed
by SpeechSynthesisClient::OnFinishedSpeaking() to blink. Particularly,
when an utterance is finished by cancel(), JS can know by getting
the error codes described in [3].This CL also adds a test for SpeechSynthesis in prerendering. According
to the spec[2], cancel() method call should have
[DelayWhilePrerendering]. The test includes speak() and cancel() in
prerendering and ensures that they are handled after activation.Bug: 1365948
Change-Id: I6cdbc8c25ecea2f0b91ec154640ab235831bcc5c
Reviewed-on: https://chromium-review.googlesource.com/3978652
WPT-Export-Revision: 9fb832cb7f13914a84e40a4b9df9351c135cc06f
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 2 subtests
Status Summary
Firefox
ERROR
: 1
Chrome
TIMEOUT
: 2
NOTRUN
: 1
Safari
ERROR
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /speculation-rules/prerender/restriction-speech-synthesis.html [wpt.fyi]:
ERROR
(Chrome:TIMEOUT
, Safari:ERROR
)
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/071c72a2191b
https://hg.mozilla.org/mozilla-central/rev/7e9eeafdda1d
Description
•