From ab499c5086e1e906514d06875d0b5a3deddf704a Mon Sep 17 00:00:00 2001 From: youennf Date: Thu, 26 Sep 2024 16:44:42 -0700 Subject: [PATCH] Queue a task before resolving the promise. (#341) We use the interaction source to make sure promise resolution and events are correctly ordered. --- index.bs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 6468441..c9c0fe5 100644 --- a/index.bs +++ b/index.bs @@ -1014,7 +1014,10 @@ interface MediaSession { captureKind and active. -
  • Resolve p with undefined.
  • +
  • + Queue a task using the [=user interaction task source=] + to resolve p with undefined. +
  • If applyPausePolicy is true, run the following substeps: @@ -1026,8 +1029,8 @@ interface MediaSession {
  • For each {{MediaStreamTrack}} whose source is of type captureKind, - queue a task to [$set a track's muted state$] to - newMutedState. + queue a taskusing the [=user interaction task source=] + to [$set a track's muted state$] to newMutedState.