Closed Bug 2073680 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 62800 - Web Speech API: Require sticky activation for relaxed model downloads

Categories

(Core :: Web Speech, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62800 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/62800
Details from upstream follow.

Evan Liu <evliu@google.com> wrote:

Web Speech API: Require sticky activation for relaxed model downloads

SpeechRecognition.install() currently requires no user activation when
the browser reports that a language pack is downloadable without a
gesture (e.g. origin has microphone permission and language is in
Accept-Language). Require sticky activation in that case, gated by the
kOnDeviceWebSpeechRequiresStickyActivation kill switch, while still
requiring and consuming transient activation for unrelaxed downloads.
Also replace Accessibility.WebSpeech.DownloadRelaxed with
DownloadActivationOutcome to record the observed activation state.

Fixed: 559063678
OBSOLETE_HISTOGRAM[Accessibility.WebSpeech.DownloadRelaxed]=Replaced by Accessibility.WebSpeech.DownloadActivationOutcome, which distinguishes requests rejected for lack of a user gesture from requests rejected for lack of sticky activation.
Change-Id: I698d06b9c470b6066993b9432112179ab47a3a9d

Reviewed-on: https://chromium-review.googlesource.com/8407893
WPT-Export-Revision: 0567ebf28e94e33b955615b98607a77fef27c6d2

Component: web-platform-tests → Web Speech
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
PASS: 5

Chrome

OK : 1
PASS: 4
FAIL: 1

Safari

OK : 1
FAIL: 5

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/21e74332c86a https://hg.mozilla.org/integration/autoland/rev/b2f81077bdbb [wpt PR 62800] - Web Speech API: Require sticky activation for relaxed model downloads, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.