Closed Bug 1797502 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36665 - Introduce a new enum type, mojom::SpeechSynthesisEndReason

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox108 fixed)

RESOLVED FIXED
108 Branch
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

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

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

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/071c72a2191b [wpt PR 36665] - Introduce a new enum type, mojom::SpeechSynthesisEndReason, a=testonly https://hg.mozilla.org/integration/autoland/rev/7e9eeafdda1d [wpt PR 36665] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.