From 2b62acd525fce693c1dcbc7b87a032ad058a1478 Mon Sep 17 00:00:00 2001 From: youennf Date: Sun, 14 Jan 2024 17:13:20 +0100 Subject: [PATCH] Update index.bs Co-authored-by: Jan-Ivar Bruaroey --- index.bs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index d3d50a9..ae2efa5 100644 --- a/index.bs +++ b/index.bs @@ -929,11 +929,15 @@ interface MediaSession { Let p be a new promise.
  • - Queue a task to run the following substeps: + Let document be [=this=]'s [=relevant global object=]'s + [=associated `Document`=]. +
  • +
  • + In parallel, run the following substeps:
    • The user agent MAY wait to proceed, for instance if - active is true and the relevant global object's - associated Document visiblity state is not "visible".
    • + active is true and document's + [=Document/visibility state=] is not `"visible"`.
    • If the user agent denies permission to change the microphone state to active, reject p with a NotAllowedError and abort these steps.