From 7bd74b4949896b34769e3b53cf5d06bc3b2fcf4f Mon Sep 17 00:00:00 2001
From: Youenn Fablet
abort these steps.
Let topContext be the current settings object's's [=relevant global object=]'s + [=associated Document=]'s [=top-level browsing context=].
+Start listening to topContext's change of focus. + Whenever topContext is losing focus, stop listening + to topContext's change of focus and + queue a global task on the user interaction task source + given current settings object's [=relevant global object=] to run the following step: +
Set controller.{{CaptureController/[[FocusChangeDisabled]]}} to true
.
+ These steps ensure {{CaptureController}} will not override explicit focus actions made by the user,
+ typically if a user decides to switch to another surface shortly after starting capture.
+ This algorithm describes what to do for surface pickers implemented by the user agent but the same
+ requirement applies to surface pickers implemented outside of the user agent,
+ where the loss of capturing document focus is not necessarily the signal triggering setting
+ {{CaptureController/[[FocusChangeDisabled]]}} to true
.
+
Permission Failure: [=Reject=]
p with a new {{DOMException}}
From 99f2b393188ef7049e9585d35b6a538524dffee0 Mon Sep 17 00:00:00 2001
From: Youenn Fablet
Let topContext be the current settings object's's [=relevant global object=]'s - [=associated Document=]'s [=top-level browsing context=].
+Let toplevelTraversable be the current settings object's's [=relevant global object=]'s + [=navigable=]'s [=top-level traversable=].
Start listening to topContext's change of focus. - Whenever topContext is losing focus, stop listening - to topContext's change of focus and +
Listen to toplevelTraversable's change of system focus.
+The first time toplevelTraversable is losing focus, queue a global task on the user interaction task source given current settings object's [=relevant global object=] to run the following step:
null
, run the following steps:
Let toplevelTraversable be the current settings object's's [=relevant global object=]'s + [=navigable=]'s [=top-level traversable=].
+Listen to toplevelTraversable's change of system focus.
+The first time toplevelTraversable is losing focus, + queue a global task on the user interaction task source + given current settings object's [=relevant global object=] to run the following step: +
Set controller.{{CaptureController/[[FocusChangeDisabled]]}} to true
.
+ These steps ensure {{CaptureController}} will not override explicit focus actions made by the user,
+ typically if a user decides to switch to another surface shortly after starting capture.
+ This algorithm describes what to do for surface pickers implemented by the user agent but the same
+ requirement applies to surface pickers implemented outside of the user agent,
+ where the loss of capturing document focus is not necessarily the signal triggering setting
+ {{CaptureController/[[FocusChangeDisabled]]}} to true
.
+
Set controller.{{CaptureController/[[Source]]}} @@ -423,28 +445,6 @@
Let toplevelTraversable be the current settings object's's [=relevant global object=]'s - [=navigable=]'s [=top-level traversable=].
-Listen to toplevelTraversable's change of system focus.
-The first time toplevelTraversable is losing focus, - queue a global task on the user interaction task source - given current settings object's [=relevant global object=] to run the following step: -
Set controller.{{CaptureController/[[FocusChangeDisabled]]}} to true
.
- These steps ensure {{CaptureController}} will not override explicit focus actions made by the user,
- typically if a user decides to switch to another surface shortly after starting capture.
- This algorithm describes what to do for surface pickers implemented by the user agent but the same
- requirement applies to surface pickers implemented outside of the user agent,
- where the loss of capturing document focus is not necessarily the signal triggering setting
- {{CaptureController/[[FocusChangeDisabled]]}} to true
.
-
Permission Failure: [=Reject=] p with a new {{DOMException}}