From a1f7e6323fff93fa883f2e5b62c3d4545cb1af25 Mon Sep 17 00:00:00 2001 From: Evan Liu Date: Thu, 12 Jun 2025 13:53:03 -0700 Subject: [PATCH 1/2] Gate available() and install() behind a policy --- index.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.bs b/index.bs index c7684a4..36a8e86 100644 --- a/index.bs +++ b/index.bs @@ -383,6 +383,7 @@ See on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. When invoked, run these steps: 1. Let promise be a new promise. @@ -396,6 +397,7 @@ See on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. When invoked, run these steps: 1. If the [=current settings object=]'s [=relevant global object=]'s [=associated Document=] is NOT [=fully active=], throw an {{InvalidStateError}} and abort these steps. From e0562168e34005705172b62b3bd54a0a1d1ea245 Mon Sep 17 00:00:00 2001 From: Evan Liu Date: Thu, 12 Jun 2025 13:53:03 -0700 Subject: [PATCH 2/2] Gate available() and install() behind a policy --- index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 36a8e86..a04341d 100644 --- a/index.bs +++ b/index.bs @@ -383,7 +383,7 @@ See on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. + Access to this method is gated behind the [=policy-controlled feature=] "on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. When invoked, run these steps: 1. Let promise be a new promise. @@ -397,7 +397,7 @@ See on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. + Access to this method is gated behind the [=policy-controlled feature=] "on-device-speech-recognition", which has a [=policy-controlled feature/default allowlist=] of [=default allowlist/'self'=]. When invoked, run these steps: 1. If the [=current settings object=]'s [=relevant global object=]'s [=associated Document=] is NOT [=fully active=], throw an {{InvalidStateError}} and abort these steps.