From 0906c151c8e860b7c4b1edae3b050b99de6c62c3 Mon Sep 17 00:00:00 2001 From: Simon Hangl Date: Wed, 31 Jul 2024 15:06:27 +0000 Subject: [PATCH] Added permission policy check in the algorithm --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 586f4ca..8630938 100644 --- a/index.html +++ b/index.html @@ -163,6 +163,12 @@

  • Let p be a new promise.

  • +
  • + If [=this=]'s [=relevant global object=]'s [=associated Document=] is + not [=allowed to use=] the [=policy-controlled feature=] named "all-screens-capture", [=reject=] + p with a new {{DOMException}} object whose {{DOMException/name}} attribute has the + value {{NotAllowedError}} and return p. +
  • Run the following steps in parallel:

      @@ -271,8 +277,7 @@

      Permissions Policy Integration

      any content in that document is allowed to use {{MediaDevices/getAllScreensMedia}}. If disabled in any document, no content in the document will be [=allowed to use=] - {{MediaDevices/getAllScreensMedia}}. In addition, only origins allowlisted by - an administator or device owner are [=allowed to use=] {{MediaDevices/getAllScreensMedia}}. + {{MediaDevices/getAllScreensMedia}}.