From 22eda9996ed1a4cc026934f3edc78b5d75e69cba Mon Sep 17 00:00:00 2001 From: Simon Hangl Date: Tue, 4 Jun 2024 12:55:08 +0000 Subject: [PATCH] Added IsolatedContext reference and updated permission --- index.html | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 62ee6a6..8804de9 100644 --- a/index.html +++ b/index.html @@ -147,6 +147,7 @@

           partial interface MediaDevices {
+            [Exposed=(Window), IsolatedContext]
             Promise<sequence<MediaStream>> getAllScreensMedia();
           };
         
@@ -239,7 +240,7 @@

ScreenCaptureMediaStreamTrack

with the {{MediaDevices/ScreenCaptureMediaStreamTrack/screenDetailed}} function with which metadata about the captured monitor can be retrieved.
-        [Exposed=Window]
+        [Exposed=Window, IsolatedContext]
         interface ScreenCaptureMediaStreamTrack : MediaStreamTrack {
           ScreenDetailed screenDetailed();
         };
@@ -255,6 +256,53 @@ 

ScreenCaptureMediaStreamTrack

+ +
+

Permissions Integration

+ + +

Capture all screens is a [=powerful feature=] which is + identified by the [=powerful feature/name=] "all-screens-capture", requiring + [=express permission=] to be used.

+ + +

As required for integration with the [[[Permissions]]] specification, + this specification defines the following:

+ + +
+
[=powerful feature/permission state constraints=]
+ + +
+ Valid values for this descriptor's permission state are + {{PermissionState/"granted"}} and {{PermissionState/"denied"}}. The user + agent sets this descriptor's permission state to + {{PermissionState/"granted"}} based on an administror defined allowlist. +
+
+
+ +
+

Permissions Policy Integration

+ + +

This specification uses a [=policy-controlled feature=] identified by + the string "all-screens-capture". Its + [=policy-controlled feature/default allowlist=] is "self".

+ + +
+

A [=document=]'s [=Document/permissions policy=] determines whether + 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}}. +

+
+
+

Privacy Indicator Requirements